pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

luakit: add a patch for luakit PR 737



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Sun Nov 25 11:16:28 2018 +0200
Changeset:	28bdc36dbb475ae6d355b07a206c301fccb4bfe2

Modified Files:
	luakit/distinfo
Added Files:
	luakit/patches/patch-widgets_webview.c

Log Message:
luakit: add a patch for luakit PR 737

Only signal "mime-type-decision" for a succesful response
(https://github.com/luakit/luakit/pull/737).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=28bdc36dbb475ae6d355b07a206c301fccb4bfe2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 luakit/distinfo                        |  1 +
 luakit/patches/patch-widgets_webview.c | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diffs:
diff --git a/luakit/distinfo b/luakit/distinfo
index d2ed3a795c..103bd3c22c 100644
--- a/luakit/distinfo
+++ b/luakit/distinfo
@@ -5,3 +5,4 @@ RMD160 (luakit-2017.08.10.tar.gz) = 144c400c408bdfc3385ee1c3b569351f1f0ae1af
 SHA512 (luakit-2017.08.10.tar.gz) = 6cceb241ca5a7ad7dfbb3964888318b5f2c5f734175ea7ecd5178419d037d58dc5e0aba00a7ed8ca3dd811cc5af953c353b0cd203be95a15c6a78c396f9230c8
 Size (luakit-2017.08.10.tar.gz) = 399564 bytes
 SHA1 (patch-config_window.lua) = 68676f1a203c2f6790ea6e502218449824b9bc80
+SHA1 (patch-widgets_webview.c) = 25550c4dc7fcacf6a8e486afdbe38e19a8df3bb4
diff --git a/luakit/patches/patch-widgets_webview.c b/luakit/patches/patch-widgets_webview.c
new file mode 100644
index 0000000000..7db3e4cdaa
--- /dev/null
+++ b/luakit/patches/patch-widgets_webview.c
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Only signal "mime-type-decision" for a succesful response.
+https://github.com/luakit/luakit/pull/737
+
+--- widgets/webview.c.orig	2018-10-07 06:06:13.000000000 +0000
++++ widgets/webview.c
+@@ -487,6 +487,9 @@ decide_policy_cb(WebKitWebView* UNUSED(v
+         const gchar *uri = webkit_uri_response_get_uri(r);
+         const gchar *mime = webkit_uri_response_get_mime_type(r);
+ 
++        if(!SOUP_STATUS_IS_SUCCESSFUL(webkit_uri_response_get_status_code(r)))
++            return FALSE;
++
+         luaH_object_push(L, w->ref);
+         lua_pushstring(L, uri);
+         lua_pushstring(L, mime);


Home | Main Index | Thread Index | Old Index