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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

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/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index 2edfad207785f848e5a478aba4a0fed33b538789..563fb6476f831848a91e1d0db80a92c3e5b236fd 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -158,7 +158,6 @@ class CORE_EXPORT ContentSecurityPolicy
bool allowEval(ScriptState* = nullptr,
ReportingStatus = SendReport,
ExceptionStatus = WillNotThrowException) const;
- bool allowDynamic() const;
bool allowPluginType(const String& type,
const String& typeAttribute,
const KURL&,
@@ -208,6 +207,7 @@ class CORE_EXPORT ContentSecurityPolicy
// represents an unnonced resource load.
bool allowScriptFromSource(const KURL&,
const String& nonce,
+ ParserDisposition,
RedirectStatus = RedirectStatus::NoRedirect,
ReportingStatus = SendReport) const;
bool allowStyleFromSource(const KURL&,
@@ -216,6 +216,7 @@ class CORE_EXPORT ContentSecurityPolicy
ReportingStatus = SendReport) const;
bool allowInlineScript(const String& contextURL,
const String& nonce,
+ ParserDisposition,
const WTF::OrdinalNumber& contextLine,
const String& scriptContent,
ReportingStatus = SendReport) const;
@@ -257,6 +258,7 @@ class CORE_EXPORT ContentSecurityPolicy
const KURL&,
const String& nonce,
const IntegrityMetadataSet&,
+ ParserDisposition,
RedirectStatus = RedirectStatus::NoRedirect,
ReportingStatus = SendReport) const;

Powered by Google App Engine
This is Rietveld 408576698