• aa@chromium.org's avatar
    2010-07-08 Aaron Boodman <aa@chromium.org> · 509c1c3d
    aa@chromium.org authored
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            * platform/win/Skipped: Skipped test because WebKit API needs updating.
            * userscripts/mixed-case-stylesheet.html: Added new allFrames param.
            * userscripts/resources/frame1.html: Added.
            * userscripts/resources/frame2.html: Added.
            * userscripts/script-not-run-for-fragments.html: Added new allFrames param.
            * userscripts/script-run-at-end.html: Ditto.
            * userscripts/script-run-at-start.html: Ditto.
            * userscripts/simple-stylesheet.html: Ditto.
            * userscripts/user-script-all-frames-expected.txt: Added.
            * userscripts/user-script-all-frames.html: Added.
            * userscripts/user-script-top-frame-only-expected.txt: Added.
            * userscripts/user-script-top-frame-only.html: Added.
            * userscripts/user-style-all-frames-expected.txt: Added.
            * userscripts/user-style-all-frames.html: Added.
            * userscripts/user-style-top-frame-only-expected.txt: Added.
            * userscripts/user-style-top-frame-only.html: Added.
    2010-07-08  Aaron Boodman  <aa@chromium.org>
    
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            Tests: userscripts/user-script-all-frames.html
                   userscripts/user-script-top-frame-only.html
                   userscripts/user-style-all-frames.html
                   userscripts/user-style-top-frame-only.html
    
            * WebCore.base.exp: Update PageGroup method signatures.
            * dom/Document.cpp:
            (WebCore::Document::pageGroupUserSheets): Check allFrames before injecting.
            * page/Frame.cpp:
            (WebCore::Frame::injectUserScriptsForWorld): Ditto.
            * page/PageGroup.cpp:
            (WebCore::PageGroup::addUserScriptToWorld):
            (WebCore::PageGroup::addUserStyleSheetToWorld):
            * page/PageGroup.h:
            * page/UserScript.h:
            (WebCore::UserScript::UserScript):
            (WebCore::UserScript::injectedFrames):
            * page/UserScriptTypes.h:
            (WebCore::):
            * page/UserStyleSheet.h:
            (WebCore::UserStyleSheet::UserStyleSheet):
            (WebCore::UserStyleSheet::injectedFrames):
    2010-07-08  Aaron Boodman  <aa@chromium.org>
    
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            * public/WebView.h:
            (WebKit::WebView::):
            (WebKit::WebView::addUserScript):
            (WebKit::WebView::addUserStyleSheet):
            * src/AssertMatchingEnums.cpp:
            * src/WebViewImpl.cpp:
            (WebKit::WebView::addUserScript):
            (WebKit::WebView::addUserStyleSheet):
    2010-07-08  Aaron Boodman  <aa@chromium.org>
    
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            * WebView/WebView.mm:
            (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:]):
            (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
            (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:]):
            (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
            * WebView/WebViewPrivate.h:
    2010-07-08  Aaron Boodman  <aa@chromium.org>
    
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            * WebView.cpp:
            (WebView::addUserScriptToGroup):
            (WebView::addUserStyleSheetToGroup):
    2010-07-08  Aaron Boodman  <aa@chromium.org>
    
            Reviewed by Timothy Hatcher.
    
            Add the ability for user scripts and user styles to affect just the top frame.
    
            https://bugs.webkit.org/show_bug.cgi?id=41529
    
            * DumpRenderTree/LayoutTestController.h: Added new allFrames param.
            * DumpRenderTree/LayoutTestController.cpp: Ditto.
            (addUserScriptCallback):
            (addUserStyleSheetCallback):
            * DumpRenderTree/chromium/LayoutTestController.cpp: Ditto.
            (LayoutTestController::addUserScript):
            (LayoutTestController::addUserStyleSheet):
            * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Ditto.
            (LayoutTestController::addUserScript):
            (LayoutTestController::addUserStyleSheet):
            * DumpRenderTree/mac/LayoutTestControllerMac.mm: Ditto.
            (LayoutTestController::addUserScript):
            (LayoutTestController::addUserStyleSheet):
            * DumpRenderTree/win/LayoutTestControllerWin.cpp: Ditto.
            (LayoutTestController::addUserScript):
            (LayoutTestController::addUserStyleSheet):
            * DumpRenderTree/wx/LayoutTestControllerWx.cpp: Ditto.
            (LayoutTestController::addUserScript):
            (LayoutTestController::addUserStyleSheet):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    509c1c3d
user-style-all-frames-expected.txt 198 Bytes