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

Unified Diff: Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.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/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp
diff --git a/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp b/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp
index 9dde0b2d97c4d2a7427c626027f89247ec3ef2b5..fefd67c55cd6dd3f2f8385d448136efc46d0931d 100644
--- a/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp
+++ b/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp
@@ -45,7 +45,7 @@ bool V8SQLStatementErrorCallback::handleEvent(SQLTransaction* transaction, SQLEr
return true;
v8::Isolate* isolate = m_scriptState->isolate();
- if (m_scriptState->contextIsEmpty())
+ if (m_scriptState->contextIsValue())
return true;
ScriptState::Scope scope(m_scriptState.get());

Powered by Google App Engine
This is Rietveld 408576698