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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.h

Issue 1644483002: Let notifyScriptLoadError() handle already detached ScriptLoaders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/core/dom/ScriptLoader.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.h b/third_party/WebKit/Source/core/dom/ScriptLoader.h
index 7b71d0cbec098deda5a83b2508288c8200c4fe0a..91437cf3e9567c295bf3e29adb0e3cff41692d3c 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.h
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.h
@@ -86,6 +86,7 @@ public:
// Clears the connection to the PendingScript (and Element and Resource).
void detach();
+ bool isDetached() const { return !m_pendingScript; }
protected:
ScriptLoader(Element*, bool createdByParser, bool isEvaluated);

Powered by Google App Engine
This is Rietveld 408576698