Beispiel #1
0
bool ScriptController::shouldBypassMainWorldContentSecurityPolicy()
{
    DOMWrapperWorld* world = DOMWrapperWorld::current(m_isolate);
    if (world && world->isIsolatedWorld())
        return world->isolatedWorldHasContentSecurityPolicy();
    return false;
}
Beispiel #2
0
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;
}