Register "chrome-extension://" as a recognized scheme in WARP 44/184544/1
authorsurya.kumar7 <surya.kumar7@samsung.com>
Wed, 18 Jul 2018 13:47:06 +0000 (19:17 +0530)
committersurya.kumar7 <surya.kumar7@samsung.com>
Wed, 18 Jul 2018 13:48:40 +0000 (19:18 +0530)
Extensions use "chrome-extension://" scheme which is not supported
by WARP and was forwarding the requests to the platform. Extended
support to the new scheme

Change-Id: I245b3384dec5666122a1acef3e59d939f7de70b0
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
tizen/browser/tizen_browser_parts.cc

index 13ceaf7..41bf8d5 100644 (file)
@@ -39,7 +39,8 @@ static bool ProcessWellKnownScheme(const std::string& url) {
       common::utils::StartsWith(url, "https:") ||
       common::utils::StartsWith(url, "widget:") ||
       common::utils::StartsWith(url, "about:") ||
-      common::utils::StartsWith(url, "blob:")) {
+      common::utils::StartsWith(url, "blob:") ||
+      common::utils::StartsWith(url, "chrome-extension:")) {
     return false;
   }
 
@@ -137,7 +138,7 @@ void TizenBrowserParts::Resume(content::RenderViewHost* rvh) {
 
 bool TizenBrowserParts::ShouldAllowNavigation(const std::string &url) {
   // scheme handling
-  // except(file , http, https, app) pass to appcontrol and return false
+  // except(file , http, https, app, chrome-extension) pass to appcontrol and return false
   if (ProcessWellKnownScheme(url)) {
     return false;
   }