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

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

Issue 2352083003: Allow top-level navigation in extension pop-ups if it only triggers a download. (Closed)
Patch Set: Going back to !defined(OS_CHROMEOS) as download shelf verification trigger. 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
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 ca9ce6b7dafe92a1beda4848ff14b56078eeeb05..71c1143d4d94ce6e660c1ba866bbb99a78506f7b 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -759,7 +759,8 @@ void NavigatorImpl::RequestTransferURL(
SiteIsolationPolicy::AreCrossProcessFramesPossible());
// Allow the delegate to cancel the transfer.
- if (!delegate_->ShouldTransferNavigation())
+ if (!delegate_->ShouldTransferNavigation(
+ render_frame_host->frame_tree_node()->IsMainFrame()))
return;
GURL dest_url(url);

Powered by Google App Engine
This is Rietveld 408576698