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

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

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.h
diff --git a/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.h b/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.h
index 6ca9792bcffa283372f60c8af1cdb5de1c663a9b..870d954d7f3ac461da928d3181f59b551fa04a88 100644
--- a/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.h
+++ b/third_party/WebKit/Source/core/inspector/v8/InspectorWrapper.h
@@ -5,6 +5,7 @@
#ifndef InspectorWrapper_h
#define InspectorWrapper_h
+#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/V8HiddenValue.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
@@ -86,7 +87,7 @@ public:
typename blink::InspectorWrapperTypeTrait<T>::Type impl(object);
v8::Isolate* isolate = context->GetIsolate();
v8::Local<v8::External> objectReference = v8::External::New(isolate, new WeakCallbackData(isolate, impl, result));
- V8HiddenValue::setHiddenValue(isolate, result, v8InternalizedString(isolate, hiddenPropertyName), objectReference);
+ V8HiddenValue::setHiddenValue(ScriptState::from(context), result, v8InternalizedString(isolate, hiddenPropertyName), objectReference);
return result;
}
static T* unwrap(v8::Local<v8::Context> context, v8::Local<v8::Object> object)

Powered by Google App Engine
This is Rietveld 408576698