| Index: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
|
| index bc5e3c2bbeaf489e66366c95cf1dcc0a3b79e5d3..9e12e0e2984f020b042b14d40f9c484010da9254 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
|
| @@ -96,8 +96,8 @@
|
| {
|
| dummyPageHolder = DummyPageHolder::create(IntSize(500, 500));
|
| dummyPageHolder->page().setDeviceScaleFactor(1.0);
|
| + documentLoader = DocumentLoader::create(&dummyPageHolder->frame(), ResourceRequest("http://www.example.com"), SubstituteData());
|
| document = toHTMLDocument(&dummyPageHolder->document());
|
| - documentLoader = document->loader();
|
| fetchContext = static_cast<FrameFetchContext*>(&documentLoader->fetcher()->context());
|
| owner = StubFrameOwner::create();
|
| FrameFetchContext::provideDocumentToContext(*fetchContext, document.get());
|
| @@ -105,9 +105,11 @@
|
|
|
| void TearDown() override
|
| {
|
| + documentLoader->detachFromFrame();
|
| documentLoader.clear();
|
|
|
| if (childFrame) {
|
| + childDocumentLoader->detachFromFrame();
|
| childDocumentLoader.clear();
|
| childFrame->detach(FrameDetachType::Remove);
|
| }
|
| @@ -119,8 +121,8 @@
|
| childFrame = LocalFrame::create(childClient.get(), document->frame()->host(), owner.get());
|
| childFrame->setView(FrameView::create(childFrame.get(), IntSize(500, 500)));
|
| childFrame->init();
|
| + childDocumentLoader = DocumentLoader::create(childFrame.get(), ResourceRequest("http://www.example.com"), SubstituteData());
|
| childDocument = childFrame->document();
|
| - childDocumentLoader = childDocument->loader();
|
| FrameFetchContext* childFetchContext = static_cast<FrameFetchContext*>(&childDocumentLoader->fetcher()->context());
|
| FrameFetchContext::provideDocumentToContext(*childFetchContext, childDocument.get());
|
| return childFetchContext;
|
|
|