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

Unified Diff: Source/core/html/imports/LinkImport.cpp

Issue 1063913002: Revert of Remove ResourceFetcher's access to a real FetchContext at frame detach time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/LinkImport.cpp
diff --git a/Source/core/html/imports/LinkImport.cpp b/Source/core/html/imports/LinkImport.cpp
index 812afedd10b4957c7cb9b20f74cf66d926e118f6..3a3e629e9812eac13882fd23e80eef820c7b98d6 100644
--- a/Source/core/html/imports/LinkImport.cpp
+++ b/Source/core/html/imports/LinkImport.cpp
@@ -128,7 +128,9 @@
bool LinkImport::hasLoaded() const
{
- return m_owner && m_child && m_child->hasFinishedLoading() && !m_child->loader()->hasError();
+ // Should never be called after importChildWasDestroyed was called.
+ ASSERT(m_owner);
+ return m_child && m_child->hasFinishedLoading() && !m_child->loader()->hasError();
}
void LinkImport::ownerInserted()
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698