[epiphany] Allow usage of webkit:// URIs



commit 690e6f8aa9f11d8cf427a94cd6d86b17a6867c63
Author: Adrian Perez de Castro <aperez igalia com>
Date:   Fri Nov 1 15:22:35 2019 +0200

    Allow usage of webkit:// URIs
    
    Add support for considering URIs with the webkit:// scheme as directly
    loadable. Starting with WebKitGTK 2.27.1 there is support for one such
    URI, webkit://gpu, which provides information the accelerated graphics
    system in use.

 embed/ephy-embed-utils.c | 3 ++-
 embed/ephy-web-view.h    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 963569a96..539f2d2dc 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -133,7 +133,8 @@ ephy_embed_utils_address_has_web_scheme (const char *address)
                      g_ascii_strncasecmp (address, "ephy-about", colonpos) &&
                      g_ascii_strncasecmp (address, "ephy-source", colonpos) &&
                      g_ascii_strncasecmp (address, "gopher", colonpos) &&
-                     g_ascii_strncasecmp (address, "inspector", colonpos));
+                     g_ascii_strncasecmp (address, "inspector", colonpos) &&
+                     g_ascii_strncasecmp (address, "webkit", colonpos));
 
   return has_web_scheme;
 }
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 751166547..acb032738 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -42,7 +42,8 @@ G_DECLARE_FINAL_TYPE (EphyWebView, ephy_web_view, EPHY, WEB_VIEW, WebKitWebView)
                                         "^about:.*$|" \
                                         "^data:.*$|" \
                                         "^file:.*$|" \
-                                        "^inspector://.*$" \
+                                        "^inspector://.*$|" \
+                                        "^webkit://.*$" \
                                         ")"
 
 #define EPHY_WEB_VIEW_DOMAIN_REGEX "^localhost(\\.[^[:space:]]+)?(:\\d+)?(:[0-9]+)?(/.*)?$|" \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]