Chromium Code Reviews| Index: content/renderer/render_view_impl.cc |
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
| index be1a15187fc06219c61d91c2cdb837cfbed8d3c1..0d88149e4bf78b579d1f6a3267b30250767f9a3f 100644 |
| --- a/content/renderer/render_view_impl.cc |
| +++ b/content/renderer/render_view_impl.cc |
| @@ -3038,8 +3038,8 @@ WebNavigationPolicy RenderViewImpl::decidePolicyForNavigation( |
| 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. |
| + // or from WebUI URLs 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,6 +3050,7 @@ WebNavigationPolicy RenderViewImpl::decidePolicyForNavigation( |
| bool is_initial_navigation = page_id_ == -1; |
| bool should_fork = HasWebUIScheme(url) || |
| (cumulative_bindings & BINDINGS_POLICY_WEB_UI) || |
| + HasWebUIScheme(old_url) || |
|
Charlie Reis
2013/03/06 19:24:27
nit: Please move above previous line, so that the
|
| url.SchemeIs(chrome::kViewSourceScheme) || |
| (frame->isViewSourceModeEnabled() && |
| type != WebKit::WebNavigationTypeReload); |