• hyatt@apple.com's avatar
    Add support for blacklist patterns to user stylesheets and scripts in addition... · 19fd5912
    hyatt@apple.com authored
    Add support for blacklist patterns to user stylesheets and scripts in addition to whitelist patterns.
    
    Reviewed by Adam Roben.
    
    WebCore: 
    
    * WebCore.base.exp:
    * dom/Document.cpp:
    (WebCore::Document::pageGroupUserSheets):
    * page/Frame.cpp:
    (WebCore::Frame::injectUserScriptsForWorld):
    * page/PageGroup.cpp:
    (WebCore::PageGroup::addUserScript):
    (WebCore::PageGroup::addUserStyleSheet):
    (WebCore::PageGroup::removeUserContentWithURLForWorld):
    (WebCore::PageGroup::removeUserContentForWorld):
    * page/PageGroup.h:
    * page/UserContentURLPattern.cpp:
    (WebCore::UserContentURLPattern::matchesPatterns):
    * page/UserContentURLPattern.h:
    * page/UserScript.h:
    (WebCore::UserScript::UserScript):
    (WebCore::UserScript::whitelist):
    (WebCore::UserScript::blacklist):
    * page/UserStyleSheet.h:
    (WebCore::UserStyleSheet::UserStyleSheet):
    (WebCore::UserStyleSheet::whitelist):
    (WebCore::UserStyleSheet::blacklist):
    
    WebKit/mac: 
    
    * WebView/WebView.mm:
    (toStringVector):
    (+[WebView _addUserScriptToGroup:source:url:worldID:whitelist:blacklist:injectionTime:]):
    (+[WebView _addUserStyleSheetToGroup:source:url:worldID:whitelist:blacklist:]):
    * WebView/WebViewPrivate.h:
    
    WebKit/win: 
    
    * Interfaces/IWebViewPrivate.idl:
    * WebView.cpp:
    (toStringVector):
    (WebView::addUserScriptToGroup):
    (WebView::addUserStyleSheetToGroup):
    * WebView.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    19fd5912
UserContentURLPattern.cpp 6.78 KB