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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2058693002: Do not suppress referrers for '<a ... rel="noopener">'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 setReferrerForFrameRequest(request.resourceRequest(), request.getShouldSendR eferrer(), request.originDocument()); 952 setReferrerForFrameRequest(request.resourceRequest(), request.getShouldSendR eferrer(), request.originDocument());
953 953
954 FrameLoadType newLoadType = (frameLoadType == FrameLoadTypeStandard) ? 954 FrameLoadType newLoadType = (frameLoadType == FrameLoadTypeStandard) ?
955 determineFrameLoadType(request) : frameLoadType; 955 determineFrameLoadType(request) : frameLoadType;
956 NavigationPolicy policy = navigationPolicyForRequest(request); 956 NavigationPolicy policy = navigationPolicyForRequest(request);
957 if (shouldOpenInNewWindow(targetFrame, request, policy)) { 957 if (shouldOpenInNewWindow(targetFrame, request, policy)) {
958 if (policy == NavigationPolicyDownload) { 958 if (policy == NavigationPolicyDownload) {
959 client()->loadURLExternally(request.resourceRequest(), NavigationPol icyDownload, String(), false); 959 client()->loadURLExternally(request.resourceRequest(), NavigationPol icyDownload, String(), false);
960 } else { 960 } else {
961 request.resourceRequest().setFrameType(WebURLRequest::FrameTypeAuxil iary); 961 request.resourceRequest().setFrameType(WebURLRequest::FrameTypeAuxil iary);
962 createWindowForRequest(request, *m_frame, policy, request.getShouldS endReferrer(), request.getShouldSetOpener()); 962 createWindowForRequest(request, *m_frame, policy);
963 } 963 }
964 return; 964 return;
965 } 965 }
966 966
967 const KURL& url = request.resourceRequest().url(); 967 const KURL& url = request.resourceRequest().url();
968 bool sameDocumentHistoryNavigation = 968 bool sameDocumentHistoryNavigation =
969 isBackForwardLoadType(newLoadType) && historyLoadType == HistorySameDocu mentLoad; 969 isBackForwardLoadType(newLoadType) && historyLoadType == HistorySameDocu mentLoad;
970 bool sameDocumentNavigation = policy == NavigationPolicyCurrentTab 970 bool sameDocumentNavigation = policy == NavigationPolicyCurrentTab
971 && shouldPerformFragmentNavigation( 971 && shouldPerformFragmentNavigation(
972 request.form(), request.resourceRequest().httpMethod(), newLoadType, url); 972 request.form(), request.resourceRequest().httpMethod(), newLoadType, url);
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String()); 1592 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String());
1593 return tracedValue; 1593 return tracedValue;
1594 } 1594 }
1595 1595
1596 inline void FrameLoader::takeObjectSnapshot() const 1596 inline void FrameLoader::takeObjectSnapshot() const
1597 { 1597 {
1598 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value()); 1598 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value());
1599 } 1599 }
1600 1600
1601 } // namespace blink 1601 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698