Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 387451547556e6ab904056b6cbc5365236da4572..656df8b773022fe28a5a3ab5cfc90209b4879096 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -477,7 +477,8 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC |
ScriptWrappable::init(this); |
if (m_frame) { |
- provideContextFeaturesToDocumentFrom(this, m_frame->page()); |
+ ASSERT(m_frame->page()); |
+ provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); |
m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
} |