Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index bd5db5a965c9139c95952df30d7a81d3a23e9652..c7149da38c86291f550de2153589bb183a40462e 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4186,7 +4186,7 @@ void Document::initSecurityContext(const DocumentInit& initializer) |
return; |
} |
- if (!initializer.frame()) { |
+ if (!initializer.hasSecurityContextSource()) { |
// No source for a security context. |
// This can occur via document.implementation.createDocument(). |
m_cookieURL = KURL(ParsedURLString, emptyString()); |