Skip to content
  • mjs@apple.com's avatar
    2011-01-20 Maciej Stachowiak <mjs@apple.com> · 7977a528
    mjs@apple.com authored
            Reviewed by Adam Roben.
    
            WebKitTestRunner needs to support layoutTestController.evaluateScriptInIsolatedWorld
            https://bugs.webkit.org/show_bug.cgi?id=42327
    
            * platform/mac-wk2/Skipped: Unskip the tests that needed this.
    2011-01-20  Maciej Stachowiak  <mjs@apple.com>
    
            Reviewed by Adam Roben.
    
            WebKitTestRunner needs to support layoutTestController.evaluateScriptInIsolatedWorld
            https://bugs.webkit.org/show_bug.cgi?id=42327
            
            Added a new API call, WKBundleFrameForJavaScriptContext, that gets the WKBundleFrameRef
            that corresponds to a JSContextRef (or null if none).
    
            * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
            (WKBundleFrameForJavaScriptContext): Simple wrapper, defers to a WebFrame
            static method.
            * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
            * WebProcess/WebPage/WebFrame.cpp:
            (WebKit::WebFrame::frameForContext): Follow the maze of twisty pointers.
            * WebProcess/WebPage/WebFrame.h:
    2011-01-20  Maciej Stachowiak  <mjs@apple.com>
    
            Reviewed by Adam Roben.
    
            WebKitTestRunner needs to support layoutTestController.evaluateScriptInIsolatedWorld
            https://bugs.webkit.org/show_bug.cgi?id=42327
    
            * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: Add support
            for methods that take their normal arguments but also a JSContextRef.
            * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: IDL definition
            for evaluateScriptInIsolatedWorld.
            * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
            (WTR::InjectedBundlePage::didClearWindowForFrame): Set a magic variable only if
            this call is for an isolated world.
            * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
            (WTR::worldMap): Helper to create a world map.
            (WTR::LayoutTestController::worldIDForWorld): Map from an ID to a world.
            (WTR::LayoutTestController::evaluateScriptInIsolatedWorld): The newly
            added LayoutTestController API.
            * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7977a528