Changeset 51580 in webkit


Ignore:
Timestamp:
Dec 1, 2009 7:44:11 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2009-12-01 Adam Barth <abarth@webkit.org>

https://bugs.webkit.org/show_bug.cgi?id=21288

Unreviewed port of @sandbox to V8.

  • bindings/v8/ScriptController.cpp: (WebCore::ScriptController::isEnabled):
  • bindings/v8/custom/V8DOMWindowCustom.cpp: (WebCore::createWindow):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51577 r51580  
     12009-12-01  Adam Barth  <abarth@webkit.org>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=21288
     4
     5        Unreviewed port of @sandbox to V8.
     6
     7        * bindings/v8/ScriptController.cpp:
     8        (WebCore::ScriptController::isEnabled):
     9        * bindings/v8/custom/V8DOMWindowCustom.cpp:
     10        (WebCore::createWindow):
     11
    1122009-12-01  Patrik Persson  <patrik.j.persson@ericsson.com>
    213
  • trunk/WebCore/bindings/v8/ScriptController.cpp

    r51538 r51580  
    295295{
    296296    Settings* settings = m_proxy->frame()->settings();
    297     return m_proxy->frame()->loader()->client()->allowJavaScript(settings && settings->isJavaScriptEnabled());
     297    return m_proxy->frame()->loader()->client()->allowJavaScript(settings && settings->settings->isJavaScriptEnabled() && !m_frame->loader()->isSandboxed(SandboxScripts));
    298298}
    299299
  • trunk/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp

    r51536 r51580  
    551551    ASSERT(enteredFrame);
    552552
     553    // Sandboxed iframes cannot open new auxiliary browsing contexts.
     554    if (callingFrame && callingFrame->loader()->isSandboxed(SandboxNavigation))
     555        return 0;
     556
    553557    ResourceRequest request;
    554558
Note: See TracChangeset for help on using the changeset viewer.