Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: Source/core/dom/Document.cpp

Issue 1156663003: Adjust FrameFetchContext clearing logic when clearing HTMLImportsController (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: improve test description Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index cfbbf9405d8d23d12bb14c52b6c4954dd2c35b08..0c62d74ae835d3206f7712a5c853869eb9d488dd 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -820,7 +820,7 @@ void Document::setImportsController(HTMLImportsController* controller)
{
ASSERT(!m_importsController || !controller);
m_importsController = controller;
- if (!m_importsController)
+ if (!m_importsController && !loader())
m_fetcher->clearContext();
}

Powered by Google App Engine
This is Rietveld 408576698