| Index: Source/bindings/v8/DOMWrapperWorld.cpp
 | 
| diff --git a/Source/bindings/v8/DOMWrapperWorld.cpp b/Source/bindings/v8/DOMWrapperWorld.cpp
 | 
| index 6b130ae9722e8ba8c779e2ce62132dc36a30fad9..250c3f1a979ccf0288b0b75265f771b07fa01900 100644
 | 
| --- a/Source/bindings/v8/DOMWrapperWorld.cpp
 | 
| +++ b/Source/bindings/v8/DOMWrapperWorld.cpp
 | 
| @@ -67,11 +67,9 @@ DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup)
 | 
|  
 | 
|  DOMWrapperWorld* DOMWrapperWorld::current(v8::Isolate* isolate)
 | 
|  {
 | 
| -    ASSERT(isolate->InContext());
 | 
|      v8::Handle<v8::Context> context = isolate->GetCurrentContext();
 | 
| -    if (!toDOMWindow(context))
 | 
| +    if (context.IsEmpty() || !contextHasCorrectPrototype(context))
 | 
|          return 0;
 | 
| -    ASSERT(isMainThread());
 | 
|      if (DOMWrapperWorld* world = isolatedWorld(context))
 | 
|          return world;
 | 
|      return mainWorld();
 | 
| 
 |