Skip to content
  • mkwst@chromium.org's avatar
    Log to console when script is blocked by sandbox attributes. · 47f1c6e1
    mkwst@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=104365
    
    Reviewed by Ojan Vafai.
    
    Source/WebCore:
    
    Adds a console message to cover script execution blocked within the
    context of a sandboxed frame which lacks the 'allow-scripts' permission.
    
    * bindings/ScriptControllerBase.cpp:
    (WebCore::ScriptController::canExecuteScripts):
        Log a warning when sandboxing flags block script execution.
    
    LayoutTests:
    
    * fast/frames/sandboxed-iframe-attribute-parsing-expected.txt:
    * fast/frames/sandboxed-iframe-autofocus-denied-expected.txt:
    * fast/frames/sandboxed-iframe-parsing-space-characters-expected.txt:
    * fast/frames/sandboxed-iframe-scripting-expected.txt:
    * http/tests/security/contentSecurityPolicy/sandbox-empty-expected.txt:
    * http/tests/security/contentSecurityPolicy/sandbox-empty-subframe-expected.txt:
    * http/tests/security/contentSecurityPolicy/sandbox-in-http-header-control-expected.txt:
    * http/tests/security/contentSecurityPolicy/sandbox-in-http-header-expected.txt:
    * http/tests/security/contentSecurityPolicy/sandbox-invalid-header-expected.txt:
    * http/tests/security/isolatedWorld/sandboxed-iframe-expected.txt:
    * http/tests/security/sandbox-inherit-to-initial-document-2-expected.txt:
    * media/video-controls-no-scripting-expected.txt:
        Rebaselining tests with new expectations.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    47f1c6e1