[epiphany] Make about:gpu an alias for webkit://gpu



commit b8b84342409a5eb42a65cf9a7d4e042c2bcac5c1
Author: Adrian Perez de Castro <aperez igalia com>
Date:   Fri Nov 1 18:41:08 2019 +0200

    Make about:gpu an alias for webkit://gpu
    
    Provide about:gpu as a convenience alias which results in webkit://gpu
    being loaded.

 embed/ephy-embed-utils.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 539f2d2dc..433f70ede 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -249,6 +249,9 @@ ephy_embed_utils_normalize_address (const char *address)
   if (ephy_embed_utils_address_is_existing_absolute_filename (address))
     return g_strconcat ("file://", address, NULL);
 
+  if (strcmp (address, "about:gpu") == 0)
+    return g_strdup ("webkit://gpu");
+
   if (g_str_has_prefix (address, "about:") && strcmp (address, "about:blank"))
     return g_strconcat (EPHY_ABOUT_SCHEME, address + strlen ("about"), NULL);
 


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