| Index: Source/bindings/v8/PageScriptDebugServer.cpp
|
| diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| index 680f69d87a54f1d19472aca81063efba9af3c05b..d87f063dcff490bb2ba3d3d4ef81cdca150bfb09 100644
|
| --- a/Source/bindings/v8/PageScriptDebugServer.cpp
|
| +++ b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| @@ -166,6 +166,11 @@ void PageScriptDebugServer::runScript(ScriptState* state, const String& scriptId
|
| ScriptDebugListener* PageScriptDebugServer::getDebugListenerForContext(v8::Handle<v8::Context> context)
|
| {
|
| v8::HandleScope scope;
|
| +
|
| + // System-created contexts will crash retrieveFrameWithGlobalCheck
|
| + if (V8PerContextDebugData::contextDebugId(context) < 0)
|
| + return 0;
|
| +
|
| Frame* frame = retrieveFrameWithGlobalObjectCheck(context);
|
| if (!frame)
|
| return 0;
|
|
|