Chromium Code Reviews| Index: Source/core/loader/DocumentLoader.cpp |
| diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp |
| index ee5bdd90d001dbed3d1e44d18044f7af617312e7..c679975ee10c922216370edd7676dc68cfb68650 100644 |
| --- a/Source/core/loader/DocumentLoader.cpp |
| +++ b/Source/core/loader/DocumentLoader.cpp |
| @@ -748,8 +748,10 @@ PassRefPtrWillBeRawPtr<DocumentWriter> DocumentLoader::createWriterFor(const Doc |
| { |
| LocalFrame* frame = init.frame(); |
| - if (frame->document()) |
| - frame->document()->prepareForDestruction(); |
| + if (frame->document()) { |
|
dcheng
2015/04/03 14:35:45
When creating the initial empty page, I believe th
|
| + ASSERT(!frame->document()->isActive()); |
| + } |
| + ASSERT(frame->tree().childCount() == 0); |
| if (!init.shouldReuseDefaultView()) |
| frame->setDOMWindow(LocalDOMWindow::create(*frame)); |