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

Unified Diff: Source/bindings/core/v8/V8EventListenerList.cpp

Issue 538933002: ScriptState::contextIsEmpty shouldn't return true for a context whose global object is detached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/bindings/core/v8/V8EventListenerList.cpp
diff --git a/Source/bindings/core/v8/V8EventListenerList.cpp b/Source/bindings/core/v8/V8EventListenerList.cpp
index e13f9607d8f66b76c04b8e4a4a1ed1c6f831e5da..07497a174eccf1c4a0e81e1a4dd5d740dc4c3a64 100644
--- a/Source/bindings/core/v8/V8EventListenerList.cpp
+++ b/Source/bindings/core/v8/V8EventListenerList.cpp
@@ -39,7 +39,7 @@ namespace blink {
PassRefPtr<EventListener> V8EventListenerList::getEventListener(ScriptState* scriptState, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup)
{
- ASSERT(!scriptState->contextIsEmpty());
+ ASSERT(!scriptState->contextIsValue());
if (lookup == ListenerFindOnly) {
// Used by EventTarget::removeEventListener, specifically
// EventTargetV8Internal::removeEventListenerMethod

Powered by Google App Engine
This is Rietveld 408576698