| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 680e990808b3fdfbbd0959929a10c92dd533902a..9b5b0e29dbc632ad8ff8d8b1e87999922f315344 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -545,6 +545,12 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
|
| // m_fetcher.
|
| m_styleEngine = StyleEngine::create(*this);
|
|
|
| + // The parent's parser should be suspended together with all the other objects,
|
| + // else this new Document would have a new ExecutionContext which suspended state
|
| + // would not match the one from the parent, and could start loading resources
|
| + // ignoring the defersLoading flag.
|
| + ASSERT(!parentDocument() || !parentDocument()->activeDOMObjectsAreSuspended());
|
| +
|
| #ifndef NDEBUG
|
| liveDocumentSet().add(this);
|
| #endif
|
|
|