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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 2375623003: Revert of Allow top-level navigation in extension pop-ups if it only triggers a download. (Closed)
Patch Set: Created 4 years, 3 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 | « content/browser/frame_host/navigator_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 71c1143d4d94ce6e660c1ba866bbb99a78506f7b..ca9ce6b7dafe92a1beda4848ff14b56078eeeb05 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -759,8 +759,7 @@
SiteIsolationPolicy::AreCrossProcessFramesPossible());
// Allow the delegate to cancel the transfer.
- if (!delegate_->ShouldTransferNavigation(
- render_frame_host->frame_tree_node()->IsMainFrame()))
+ if (!delegate_->ShouldTransferNavigation())
return;
GURL dest_url(url);
« no previous file with comments | « content/browser/frame_host/navigator_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698