Index: Source/bindings/core/v8/WindowProxy.cpp |
diff --git a/Source/bindings/core/v8/WindowProxy.cpp b/Source/bindings/core/v8/WindowProxy.cpp |
index afe97dbd50974e9d62ae70881bd94998e4fdb256..08c719d5fbfcfaa93b0c3de76e02a86fb7f5b061 100644 |
--- a/Source/bindings/core/v8/WindowProxy.cpp |
+++ b/Source/bindings/core/v8/WindowProxy.cpp |
@@ -245,9 +245,7 @@ bool WindowProxy::initialize() |
void WindowProxy::createContext() |
{ |
- // This can get called after a frame is already detached... |
- // FIXME: Fix the code so we don't need this check. |
- if (m_frame->isLocalFrame() && !toLocalFrame(m_frame)->loader().documentLoader()) |
+ if (!m_frame->client()) |
return; |
// Create a new environment using an empty template for the shadow |