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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 2401573003: CSP: Fix 'strict-dynamic' with multiple policies. (Closed)
Patch Set: Tests compile. 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/parser/PreloadRequest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
index 7a0deed9a0b972a43c47bf3781d5500e799f7a3b..5278e2ecd7c66e92c9aa027405f073af21eac60a 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
@@ -50,6 +50,7 @@ FetchRequest PreloadRequest::resourceRequest(Document* document) {
request.clientHintsPreferences().updateFrom(m_clientHintsPreferences);
request.setIntegrityMetadata(m_integrityMetadata);
request.setContentSecurityPolicyNonce(m_nonce);
+ request.setParserDisposition(ParserInserted);
if (m_requestType == RequestTypeLinkRelPreload)
request.setLinkPreload(true);

Powered by Google App Engine
This is Rietveld 408576698