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

Unified Diff: chrome/renderer/render_view.cc

Issue 2800005: Allow POST requests made from an extension process to reuse the same process, (Closed)
Patch Set: . Created 10 years, 6 months 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 | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index b99adcd281810b8af3c017880d8057ab85a90c0d..af9234879d550305ec3a7c751e840fd8e291842c 100755
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2414,6 +2414,7 @@ WebNavigationPolicy RenderView::decidePolicyForNavigation(
// still allow that.
if (default_policy == WebKit::WebNavigationPolicyCurrentTab &&
is_content_initiated && frame->parent() == NULL &&
+ type != WebKit::WebNavigationTypeFormSubmitted &&
!url.SchemeIs(chrome::kAboutScheme)) {
// When we received such unsolicited navigations, we sometimes want to
// punt them up to the browser to handle.
@@ -2431,7 +2432,7 @@ WebNavigationPolicy RenderView::decidePolicyForNavigation(
// Note that we've already forwarded cross-extension extents navigations
// above.
if (BindingsPolicy::is_extension_enabled(enabled_bindings_) &&
- IsNonLocalTopLevelNavigation(url, frame, type)) {
+ IsNonLocalTopLevelNavigation(url, frame, type)) {
OpenURL(url, GURL(), default_policy);
return WebKit::WebNavigationPolicyIgnore; // Suppress the load here.
}
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698