summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorvsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-07 22:18:59 +0000
committervsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-07 22:18:59 +0000
commit0a57375ad73780e61e1770a9d88b0529b0dbd33b (patch)
treebf987093e19aa4c76bf90834437a499a6ecc232d /content
parente3cb4529d79a4993535da612dafedc8c40f075bb (diff)
downloadchromium_src-0a57375ad73780e61e1770a9d88b0529b0dbd33b.zip
chromium_src-0a57375ad73780e61e1770a9d88b0529b0dbd33b.tar.gz
chromium_src-0a57375ad73780e61e1770a9d88b0529b0dbd33b.tar.bz2
Let the browser handle external navigations from DevTools.
BUG=180555 Review URL: https://chromiumcodereview.appspot.com/12531004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/render_view_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 845c27c..53e390b 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3039,9 +3039,9 @@ WebNavigationPolicy RenderViewImpl::decidePolicyForNavigation(
!url.SchemeIs(chrome::kAboutScheme)) {
bool send_referrer = false;
- // All navigations to WebUI URLs or within WebUI-enabled RenderProcesses
- // must be handled by the browser process so that the correct bindings and
- // data sources can be registered.
+ // All navigations to or from WebUI URLs or within WebUI-enabled
+ // RenderProcesses must be handled by the browser process so that the
+ // correct bindings and data sources can be registered.
// Similarly, navigations to view-source URLs or within ViewSource mode
// must be handled by the browser process (except for reloads - those are
// safe to leave within the renderer).
@@ -3050,7 +3050,7 @@ WebNavigationPolicy RenderViewImpl::decidePolicyForNavigation(
// blessed with file permissions.
int cumulative_bindings = RenderProcess::current()->GetEnabledBindings();
bool is_initial_navigation = page_id_ == -1;
- bool should_fork = HasWebUIScheme(url) ||
+ bool should_fork = HasWebUIScheme(url) || HasWebUIScheme(old_url) ||
(cumulative_bindings & BINDINGS_POLICY_WEB_UI) ||
url.SchemeIs(chrome::kViewSourceScheme) ||
(frame->isViewSourceModeEnabled() &&