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

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

Issue 2424943002: Add ReferrerPolicy support to preload (Closed)
Patch Set: Fix test. Again 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..7a2747909d6e950dc8280cfc20c636a27b8423ee 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -288,6 +288,7 @@ void LinkStyle::process() {
String type = m_owner->typeValue().lower();
String as = m_owner->asValue().lower();
String media = m_owner->media().lower();
+ String referrerPolicy = m_owner->referrerPolicy().lower();
LinkRequestBuilder builder(m_owner);
if (m_owner->relAttribute().getIconType() != InvalidIcon &&
@@ -305,7 +306,7 @@ void LinkStyle::process() {
}
}
- if (!m_owner->loadLink(type, as, media, builder.url()))
+ if (!m_owner->loadLink(type, as, media, referrerPolicy, builder.url()))
return;
if (m_disabledState != Disabled && m_owner->relAttribute().isStyleSheet() &&

Powered by Google App Engine
This is Rietveld 408576698