| Index: Source/bindings/v8/ScriptController.cpp
 | 
| diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
 | 
| index 4c5f7026382f396a2d1d917abd919a638351f668..fb0c619b49c857843de52b2a174beaf44991d9ce 100644
 | 
| --- a/Source/bindings/v8/ScriptController.cpp
 | 
| +++ b/Source/bindings/v8/ScriptController.cpp
 | 
| @@ -263,7 +263,8 @@ V8WindowShell* ScriptController::windowShell(DOMWrapperWorld* world)
 | 
|  
 | 
|  bool ScriptController::shouldBypassMainWorldContentSecurityPolicy()
 | 
|  {
 | 
| -    if (DOMWrapperWorld* world = isolatedWorldForEnteredContext(m_isolate))
 | 
| +    DOMWrapperWorld* world = DOMWrapperWorld::current(m_isolate);
 | 
| +    if (world && world->isIsolatedWorld())
 | 
|          return world->isolatedWorldHasContentSecurityPolicy();
 | 
|      return false;
 | 
|  }
 | 
| 
 |