[epiphany] web-extension: Fix blocking of URIs
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-extension: Fix blocking of URIs
- Date: Tue, 25 Oct 2016 02:43:47 +0000 (UTC)
commit 3f11d72e80473dbbd2dcec69ecf25bbf828d2291
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Oct 24 21:33:58 2016 -0500
web-extension: Fix blocking of URIs
embed/web-extension/ephy-web-extension.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 51f71c0..6fa8812 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -133,7 +133,8 @@ web_page_send_request (WebKitWebPage *web_page,
page_uri);
if (g_strcmp0 (request_uri, modified_uri) != 0) {
LOG ("Rewrote %s to %s", request_uri, modified_uri);
- webkit_uri_request_set_uri (request, modified_uri);
+ webkit_uri_request_set_uri (request,
+ strlen (modified_uri) > 0 ? modified_uri : NULL);
}
g_free (modified_uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]