Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: ios/web/webui/crw_web_ui_manager.mm

Issue 1464383002: Don't load WebUI if provisional navigation is for non-chrome URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/crw_web_ui_manager.mm
diff --git a/ios/web/webui/crw_web_ui_manager.mm b/ios/web/webui/crw_web_ui_manager.mm
index 515dd2ec5340d985fbb59e27653702eb25d6bc87..0b74af1d7d3a6a80bc87467b654f48a41b281019 100644
--- a/ios/web/webui/crw_web_ui_manager.mm
+++ b/ios/web/webui/crw_web_ui_manager.mm
@@ -88,6 +88,10 @@ const char kScriptCommandPrefix[] = "webui";
- (void)webState:(web::WebState*)webState
didStartProvisionalNavigationForURL:(const GURL&)URL {
DCHECK(webState == _webState);
+ // If URL is not an application specific URL, ignore the navigation.
Eugene But (OOO till 7-30) 2015/11/23 17:31:42 Do we have other app-specific URLs which are not W
+ if (!web::GetWebClient()->IsAppSpecificURL(URL))
+ return;
+
GURL navigationURL(URL);
// Add request group ID to the URL, if not present. Request group ID may
// already be added if restoring state to a WebUI page.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698