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

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

Issue 2411693003: Move blocking of top-level navigations to nested URLs with extension origins from non-extension pro… (Closed)
Patch Set: Created 4 years, 2 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/interstitial_page_navigator_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_navigator_impl.cc b/content/browser/frame_host/interstitial_page_navigator_impl.cc
index a19deefa127366eb78f867e56bc8c4c4d7fd73b0..d4c803360889599c8d970ab380c67429d66be1f3 100644
--- a/content/browser/frame_host/interstitial_page_navigator_impl.cc
+++ b/content/browser/frame_host/interstitial_page_navigator_impl.cc
@@ -34,13 +34,15 @@ void InterstitialPageNavigatorImpl::DidStartProvisionalLoad(
// The interstitial page should only navigate once.
DCHECK(!navigation_handle_.get());
navigation_handle_ =
- NavigationHandleImpl::Create(url, render_frame_host->frame_tree_node(),
- false, // is_renderer_initiated
- false, // is_synchronous
- false, // is_srcdoc
- navigation_start,
- 0, // pending_nav_entry_id
- false); // started_in_context_menu
+ NavigationHandleImpl::Create(url,
+ render_frame_host->GetSiteInstance()->GetSiteURL(),
+ render_frame_host->frame_tree_node(),
+ false, // is_renderer_initiated
+ false, // is_synchronous
+ false, // is_srcdoc
+ navigation_start,
+ 0, // pending_nav_entry_id
+ false); // started_in_context_menu
}
void InterstitialPageNavigatorImpl::DidNavigate(

Powered by Google App Engine
This is Rietveld 408576698