| Index: Source/bindings/v8/PageScriptDebugServer.cpp
|
| diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| index 5965d7f0fc6f7561a3b48ee9ec10e0ae21c3119f..54ba066530f36bf9e8ee586fabc04721adf1f510 100644
|
| --- a/Source/bindings/v8/PageScriptDebugServer.cpp
|
| +++ b/Source/bindings/v8/PageScriptDebugServer.cpp
|
| @@ -56,8 +56,12 @@ static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Handle<v8::Context> co
|
| if (context.IsEmpty())
|
| return 0;
|
|
|
| - // Test that context has associated global dom window object.
|
| - if (!V8WindowShell::contextHasCorrectPrototype(context))
|
| + // FIXME: This is a temporary hack for crbug.com/345014.
|
| + // Currently it's possible that V8 can trigger Debugger::ProcessDebugEvent for a context
|
| + // that is being initialized (i.e., inside Context::New() of the context).
|
| + // We should fix the V8 side so that it won't trigger the event for a half-baked context
|
| + // because there is no way in the embedder side to check if the context is half-baked or not.
|
| + if (V8WindowShell::contextIsBeingInitialized())
|
| return 0;
|
|
|
| v8::Handle<v8::Value> global = V8Window::findInstanceInPrototypeChain(context->Global(), context->GetIsolate());
|
|
|