bool ScriptController::shouldBypassMainWorldContentSecurityPolicy() { DOMWrapperWorld* world = DOMWrapperWorld::current(m_isolate); if (world && world->isIsolatedWorld()) return world->isolatedWorldHasContentSecurityPolicy(); return false; }
bool ScriptController::shouldBypassMainWorldContentSecurityPolicy() { v8::Handle<v8::Context> context = m_isolate->GetCurrentContext(); if (context.IsEmpty() || !toDOMWindow(context)) return false; DOMWrapperWorld* world = DOMWrapperWorld::current(m_isolate); return world->isIsolatedWorld() ? world->isolatedWorldHasContentSecurityPolicy() : false; }