Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
| index abd3cc840b1245a157859e1b576f9976ab1209bb..1058ac0cc3aced9be309ddf4239ac470b30378b5 100644 |
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
| @@ -1220,13 +1220,14 @@ Node* InspectorDOMAgent::nodeForRemoteId(ErrorString* errorString, const String& |
| *errorString = "Cannot find context for specified object id"; |
| return nullptr; |
| } |
| - ScriptState::Scope scope(injectedScript->scriptState()); |
| + v8::HandleScope handles(injectedScript->isolate()); |
| + v8::Context::Scope scope(injectedScript->context()); |
|
dgozman
2016/01/27 22:05:47
I think InjectedScript should enter context itself
pfeldman
2016/01/27 22:15:45
Done.
|
| v8::Local<v8::Value> value = injectedScript->findObject(*remoteId); |
| if (value.IsEmpty()) { |
| *errorString = "Node for given objectId not found"; |
| return nullptr; |
| } |
| - v8::Isolate* isolate = injectedScript->scriptState()->isolate(); |
| + v8::Isolate* isolate = injectedScript->isolate(); |
| if (!V8Node::hasInstance(value, isolate)) { |
| *errorString = "Object id doesn't reference a Node"; |
| return nullptr; |