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

Unified Diff: third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp

Issue 1419313003: Track the script state a listener was created in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/inspector/v8/InspectorWrapper.cpp
diff --git a/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp b/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp
index fe2e2bb2114d6411c3a2254b8da7e052d8fdea07..1cab1b3dab31af52a0e36d04b999d05b70c430cc 100644
--- a/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp
+++ b/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.cpp
@@ -54,7 +54,7 @@ void* InspectorWrapperBase::unwrap(v8::Local<v8::Context> context, v8::Local<v8:
{
ASSERT(context != v8::Debug::GetDebugContext());
v8::Isolate* isolate = context->GetIsolate();
- v8::Local<v8::Value> value = V8HiddenValue::getHiddenValue(isolate, object, v8InternalizedString(isolate, name));
+ v8::Local<v8::Value> value = V8HiddenValue::getHiddenValue(ScriptState::from(context), object, v8InternalizedString(isolate, name));
if (value.IsEmpty())
return nullptr;
if (!value->IsExternal())

Powered by Google App Engine
This is Rietveld 408576698