Index: Source/core/frame/csp/ContentSecurityPolicy.cpp |
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
index cdd5d063a27a8209e4e2fb288da86cdb7096524b..74667860940c8033ca52a0e0d45f4c2ef0dc60b7 100644 |
--- a/Source/core/frame/csp/ContentSecurityPolicy.cpp |
+++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp |
@@ -142,6 +142,11 @@ ContentSecurityPolicy::~ContentSecurityPolicy() |
{ |
} |
+Document* ContentSecurityPolicy::document() const |
+{ |
+ return m_executionContext->isDocument() ? toDocument(m_executionContext) : 0; |
+} |
+ |
void ContentSecurityPolicy::copyStateFrom(const ContentSecurityPolicy* other) |
{ |
ASSERT(m_policies.isEmpty()); |