| Index: Source/core/frame/csp/ContentSecurityPolicy.h
|
| diff --git a/Source/core/frame/csp/ContentSecurityPolicy.h b/Source/core/frame/csp/ContentSecurityPolicy.h
|
| index eefe3a7156c902e7d19d3b7038eb7037d3013fbc..439c4fd78146ae11b1afdcb3a5d0d48ebb409e92 100644
|
| --- a/Source/core/frame/csp/ContentSecurityPolicy.h
|
| +++ b/Source/core/frame/csp/ContentSecurityPolicy.h
|
| @@ -99,6 +99,10 @@ public:
|
| // https://w3c.github.io/webappsec/specs/upgrade/
|
| static const char UpgradeInsecureRequests[];
|
|
|
| + // Suborigin Directive
|
| + // https://metromoxie.github.io/webappsec/specs/suborigins/index.html
|
| + static const char Suborigin[];
|
| +
|
| enum ReportingStatus {
|
| SendReport,
|
| SuppressReport
|
| @@ -205,6 +209,7 @@ public:
|
| void reportInvalidPathCharacter(const String& directiveName, const String& value, const char);
|
| void reportInvalidPluginTypes(const String&);
|
| void reportInvalidSandboxFlags(const String&);
|
| + void reportInvalidSuboriginFlags(const String&);
|
| void reportInvalidSourceExpression(const String& directiveName, const String& source);
|
| void reportInvalidReflectedXSS(const String&);
|
| void reportMissingReportURI(const String&);
|
| @@ -213,6 +218,7 @@ public:
|
| void reportInvalidReferrer(const String&);
|
| void reportReportOnlyInMeta(const String&);
|
| void reportMetaOutsideHead(const String&);
|
| + void reportSuboriginInMeta(const String&);
|
| void reportValueForEmptyDirective(const String& directiveName, const String& value);
|
|
|
| // If a frame is passed in, the report will be sent using it as a context. If no frame is
|
| @@ -224,6 +230,7 @@ public:
|
|
|
| const KURL url() const;
|
| void enforceSandboxFlags(SandboxFlags);
|
| + void enforceSuborigin(const String&);
|
| void enforceStrictMixedContentChecking();
|
| String evalDisabledErrorMessage() const;
|
|
|
| @@ -280,6 +287,7 @@ private:
|
|
|
| // State flags used to configure the environment after parsing a policy.
|
| SandboxFlags m_sandboxMask;
|
| + String m_suboriginName;
|
| bool m_enforceStrictMixedContentChecking;
|
| ReferrerPolicy m_referrerPolicy;
|
| String m_disableEvalErrorMessage;
|
|
|