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

Unified Diff: Source/bindings/templates/callback_interface.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/templates/callback_interface.cpp
diff --git a/Source/bindings/templates/callback_interface.cpp b/Source/bindings/templates/callback_interface.cpp
index 022c8a16362612d213500b6f27c2a6458a659a1f..2a4796c773152ed51552191217a57eb89f5c290a 100644
--- a/Source/bindings/templates/callback_interface.cpp
+++ b/Source/bindings/templates/callback_interface.cpp
@@ -33,7 +33,7 @@ namespace blink {
if (!canInvokeCallback())
{{return_default}};
- if (m_scriptState->contextIsEmpty())
+ if (m_scriptState->contextIsValid())
{{return_default}};
ScriptState::Scope scope(m_scriptState.get());

Powered by Google App Engine
This is Rietveld 408576698