Index: content/renderer/render_view_impl.cc |
=================================================================== |
--- content/renderer/render_view_impl.cc (revision 187956) |
+++ content/renderer/render_view_impl.cc (working copy) |
@@ -3002,9 +3002,9 @@ |
!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). |
@@ -3013,7 +3013,7 @@ |
// 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() && |