[epiphany] Revert "web-extension: Remove workaround for fixed bug"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "web-extension: Remove workaround for fixed bug"
- Date: Mon, 10 Oct 2016 03:33:14 +0000 (UTC)
commit adc5711c567f2d262fde5899d0771e54e4f7104c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Oct 9 22:28:15 2016 -0500
Revert "web-extension: Remove workaround for fixed bug"
This reverts commit 63020bd52d3ebe93137a6bde97456be87c9f01f2.
The overview is still broken. And it's also appending / to data URIs,
not sure if that breaks them or not.
embed/web-extension/ephy-web-extension.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index e272947..c174fd7 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -149,6 +149,11 @@ web_page_send_request (WebKitWebPage *web_page,
/* Rewrite URL to use HTTPS if directed by HTTPS Everywhere */
new_uri = https_everywhere_rewrite (request_uri);
if (g_strcmp0 (request_uri, new_uri) != 0) {
+ /* Workaround for https://github.com/grindhold/libhttpseverywhere/issues/8
+ * FIXME: Remove this, it's crazy!
+ */
+ if (new_uri[strlen (new_uri) - 1] == '/')
+ new_uri[strlen (new_uri) - 1] = '\0';
LOG ("HTTPS Everywhere: rewrote %s to %s", request_uri, new_uri);
webkit_uri_request_set_uri (request, new_uri);
request_uri = webkit_uri_request_get_uri (request);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]