From e61917a8bd5143003372e5a237cdb1a8a5e7d556 Mon Sep 17 00:00:00 2001 From: "surya.kumar7" Date: Wed, 18 Jul 2018 19:17:06 +0530 Subject: [PATCH] Register "chrome-extension://" as a recognized scheme in WARP 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 --- tizen/browser/tizen_browser_parts.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tizen/browser/tizen_browser_parts.cc b/tizen/browser/tizen_browser_parts.cc index 13ceaf7..41bf8d5 100644 --- a/tizen/browser/tizen_browser_parts.cc +++ b/tizen/browser/tizen_browser_parts.cc @@ -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; } -- 2.7.4