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

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

Issue 1002953004: Ensure we properly set PageTransition for iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 fd59de25c324c7bebe2e9f46604ce172cc70f7e5..32e3d50d6881f194b357dc7b8bb803ce5f00e381 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -514,6 +514,7 @@ void NavigatorImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host,
const GURL& url,
SiteInstance* source_site_instance,
const Referrer& referrer,
+ ui::PageTransition page_transition,
WindowOpenDisposition disposition,
bool should_replace_current_entry,
bool user_gesture) {
@@ -535,7 +536,7 @@ void NavigatorImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host,
// redirects. http://crbug.com/311721.
std::vector<GURL> redirect_chain;
RequestTransferURL(render_frame_host, url, source_site_instance,
- redirect_chain, referrer, ui::PAGE_TRANSITION_LINK,
+ redirect_chain, referrer, page_transition,
disposition, GlobalRequestID(),
should_replace_current_entry, user_gesture);
}

Powered by Google App Engine
This is Rietveld 408576698