| Index: Source/core/loader/DocumentLoader.cpp
|
| diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
|
| index 7b10a32dfcb4de150e0751470418fe78b8959baf..ca183c2ae9dc1b1bbc9a5b4f210ab53456be95c7 100644
|
| --- a/Source/core/loader/DocumentLoader.cpp
|
| +++ b/Source/core/loader/DocumentLoader.cpp
|
| @@ -748,8 +748,8 @@ PassRefPtrWillBeRawPtr<DocumentWriter> DocumentLoader::createWriterFor(const Doc
|
| {
|
| LocalFrame* frame = init.frame();
|
|
|
| - if (frame->document())
|
| - frame->document()->prepareForDestruction();
|
| + ASSERT(!frame->document() || !frame->document()->isActive());
|
| + ASSERT(frame->tree().childCount() == 0);
|
|
|
| if (!init.shouldReuseDefaultView())
|
| frame->setDOMWindow(LocalDOMWindow::create(*frame));
|
|
|