1. 27 Sep, 2013 1 commit
    • darin@apple.com's avatar
      rename KURL to URL · 5ffbb5c7
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=16214
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * many files: Renamed, using script.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Let the script to try to rename here.
      
      Source/WebKit/blackberry:
      
      * many files: Renamed, using script.
      
      Source/WebKit/efl:
      
      * many files: Renamed, using script.
      
      Source/WebKit/gtk:
      
      * many files: Renamed, using script.
      
      Source/WebKit/mac:
      
      * many files: Renamed, using script.
      
      Source/WebKit/qt:
      
      * many files: Renamed, using script.
      
      Source/WebKit/win:
      
      * many files: Renamed, using script.
      
      Source/WebKit/wince:
      
      * many files: Renamed, using script.
      
      Source/WebKit2:
      
      * many files: Renamed, using script.
      
      Tools:
      
      * many files: Renamed, using script.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ffbb5c7
  2. 23 Apr, 2012 1 commit
  3. 21 Nov, 2011 1 commit
    • jochen@chromium.org's avatar
      Implement Meta referrer · 4761ef58
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72674
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      http://wiki.whatwg.org/wiki/Meta_referrer
      
      Tests: http/tests/security/referrer-policy-always.html
             http/tests/security/referrer-policy-default.html
             http/tests/security/referrer-policy-https-always.html
             http/tests/security/referrer-policy-https-default.html
             http/tests/security/referrer-policy-https-never.html
             http/tests/security/referrer-policy-https-origin.html
             http/tests/security/referrer-policy-never.html
             http/tests/security/referrer-policy-origin.html
             http/tests/security/referrer-policy-redirect.html
             http/tests/security/referrer-policy-rel-noreferrer.html
      
      * WebCore.exp.in: updated
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::processReferrerPolicy):
      * dom/Document.h:
      (WebCore::Document::referrerPolicy):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::process):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadFrameRequest):
      (WebCore::FrameLoader::loadResourceSynchronously):
      * loader/PingLoader.cpp:
      (WebCore::PingLoader::loadImage):
      (WebCore::PingLoader::sendPing):
      (WebCore::PingLoader::reportContentSecurityPolicyViolation):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::loadSubframe):
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::create):
      * page/SecurityPolicy.cpp:
      (WebCore::SecurityPolicy::generateReferrerHeader):
      * page/SecurityPolicy.h:
      
      Source/WebKit/chromium:
      
      * WebKit.gyp:
      * public/WebFrame.h:
      * public/WebReferrerPolicy.h: Added.
      * public/WebSecurityPolicy.h:
      * src/AssertMatchingEnums.cpp:
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::referrerPolicy):
      (WebKit::WebFrameImpl::setReferrerForRequest):
      * src/WebFrameImpl.h:
      * src/WebSecurityPolicy.cpp:
      (WebKit::WebSecurityPolicy::generateReferrerHeader):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
      * Plugins/WebNetscapePluginStream.mm:
      (WebNetscapePluginStream::WebNetscapePluginStream):
      
      Source/WebKit2:
      
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::loadURL):
      
      LayoutTests:
      
      * http/tests/security/referrer-policy-always-expected.txt: Added.
      * http/tests/security/referrer-policy-always.html: Added.
      * http/tests/security/referrer-policy-default-expected.txt: Added.
      * http/tests/security/referrer-policy-default.html: Added.
      * http/tests/security/referrer-policy-https-always-expected.txt: Added.
      * http/tests/security/referrer-policy-https-always.html: Added.
      * http/tests/security/referrer-policy-https-default-expected.txt: Added.
      * http/tests/security/referrer-policy-https-default.html: Added.
      * http/tests/security/referrer-policy-https-never-expected.txt: Added.
      * http/tests/security/referrer-policy-https-never.html: Added.
      * http/tests/security/referrer-policy-https-origin-expected.txt: Added.
      * http/tests/security/referrer-policy-https-origin.html: Added.
      * http/tests/security/referrer-policy-never-expected.txt: Added.
      * http/tests/security/referrer-policy-never.html: Added.
      * http/tests/security/referrer-policy-origin-expected.txt: Added.
      * http/tests/security/referrer-policy-origin.html: Added.
      * http/tests/security/referrer-policy-redirect-expected.txt: Added.
      * http/tests/security/referrer-policy-redirect.html: Added.
      * http/tests/security/referrer-policy-rel-noreferrer-expected.txt: Added.
      * http/tests/security/referrer-policy-rel-noreferrer.html: Added.
      * http/tests/security/resources/referrer-policy-log.php: Added.
      * http/tests/security/resources/referrer-policy-redirect.html: Added.
      * http/tests/security/resources/referrer-policy-start.html: Added.
      * http/tests/security/resources/rel-noreferrer.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4761ef58
  4. 09 Nov, 2011 1 commit
    • abarth@webkit.org's avatar
      Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp · eea9066c
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71755
      
      Reviewed by Eric Seidel.
      
      Source/WebCore: 
      
      The SecurityOrigin class should be focused on representing a web
      security origin rather than being a dumping ground for all
      security-related state.  This patch moves a bunch of static "policy"
      state into its own SecurityPolicy class.
      
      * WebCore.exp.in:
      * WebCore.gypi:
      * dom/Document.cpp:
      (WebCore::Document::initSecurityContext):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::handleClick):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadFrameRequest):
      (WebCore::FrameLoader::loadResourceSynchronously):
      * loader/PingLoader.cpp:
      (WebCore::PingLoader::loadImage):
      (WebCore::PingLoader::sendPing):
      (WebCore::PingLoader::reportContentSecurityPolicyViolation):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::loadSubframe):
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::create):
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::canRequest):
      (WebCore::SecurityOrigin::canDisplay):
      (WebCore::SecurityOrigin::grantLoadLocalResources):
      * page/SecurityOrigin.h:
      
      Source/WebKit/chromium: 
      
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::setReferrerForRequest):
      * src/WebSecurityPolicy.cpp:
      (WebKit::WebSecurityPolicy::addOriginAccessWhitelistEntry):
      (WebKit::WebSecurityPolicy::removeOriginAccessWhitelistEntry):
      (WebKit::WebSecurityPolicy::resetOriginAccessWhitelists):
      (WebKit::WebSecurityPolicy::shouldHideReferrer):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::initializeMainFrame):
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::whiteListAccessFromOrigin):
      (DumpRenderTreeSupportGtk::resetOriginAccessWhiteLists):
      
      Source/WebKit/mac: 
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
      * Plugins/WebNetscapePluginStream.mm:
      (WebNetscapePluginStream::WebNetscapePluginStream):
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:]):
      (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
      (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
      (+[WebView _resetOriginAccessWhitelists]):
      
      Source/WebKit/qt: 
      
      * Api/qwebpage.cpp:
      (QWebPagePrivate::QWebPagePrivate):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
      (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
      (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
      
      Source/WebKit/win: 
      
      * WebView.cpp:
      (WebView::addOriginAccessWhitelistEntry):
      (WebView::removeOriginAccessWhitelistEntry):
      (WebView::resetOriginAccessWhitelists):
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::addOriginAccessWhitelistEntry):
      (WebKit::InjectedBundle::removeOriginAccessWhitelistEntry):
      (WebKit::InjectedBundle::resetOriginAccessWhitelists):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::loadURL):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eea9066c