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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.cpp

Issue 2424943002: Add ReferrerPolicy support to preload (Closed)
Patch Set: Test fix 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: third_party/WebKit/Source/core/html/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index b005d916dcdc822cd6e0d3419bf676959fc4fa00..8dfaaaddc414a390c29b64e27595edbcc10b2ca4 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -305,7 +305,8 @@ void LinkStyle::process() {
}
}
- if (!m_owner->loadLink(type, as, media, builder.url()))
+ if (!m_owner->loadLink(type, as, media, m_owner->referrerPolicy(),
+ builder.url()))
return;
if (m_disabledState != Disabled && m_owner->relAttribute().isStyleSheet() &&

Powered by Google App Engine
This is Rietveld 408576698