luakit-git: PR 737 has been merged upstream
This commit is contained in:
parent
01fcc88d16
commit
ad5313f34b
|
@ -5,4 +5,3 @@ RMD160 (luakit/2aecefe95c99808121edbf3903c3947779f8c4d4-2aecefe95c99808121edbf39
|
|||
SHA512 (luakit/2aecefe95c99808121edbf3903c3947779f8c4d4-2aecefe95c99808121edbf3903c3947779f8c4d4.zip) = f493fde91e87b8bd40f3a90b558c4d297ed31bc00e6924660a5c1fa55aa35bfd2eb7c8a6a7ea1d6b9ef7d095d358659d350ca92fbc6f654a9df9a1544ce30fdf
|
||||
Size (luakit/2aecefe95c99808121edbf3903c3947779f8c4d4-2aecefe95c99808121edbf3903c3947779f8c4d4.zip) = 518360 bytes
|
||||
SHA1 (patch-lib_window.lua) = cdbea2b3a9cca18c6e3a6b682cdb33b44ef286c0
|
||||
SHA1 (patch-widgets_webview.c) = 25550c4dc7fcacf6a8e486afdbe38e19a8df3bb4
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
$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);
|
Loading…
Reference in New Issue