• ap@apple.com's avatar
    [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain · 664c7b3d
    ap@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=127139
    
    Reviewed by Brady Eidson.
    
    Source/WebCore: 
    
    * platform/ios/WebCoreSystemInterfaceIOS.mm:
    * platform/mac/WebCoreSystemInterface.h:
    * platform/mac/WebCoreSystemInterface.mm:
    Pass first party URL down, because reading cookies depends on it when this policy
    in in action.
    
    * platform/network/cf/CookieJarCFNet.cpp:
    (WebCore::copyCookiesForURLWithFirstPartyURL):
    (WebCore::cookiesForDOM):
    (WebCore::cookieRequestHeaderFieldValue):
    (WebCore::cookiesEnabled):
    (WebCore::getRawCookies):
    Use a new CFNetwork API that takes first party URL.
    
    * platform/network/mac/CookieJarMac.mm:
    (WebCore::cookiesForDOM):
    (WebCore::cookieRequestHeaderFieldValue):
    (WebCore::cookiesEnabled):
    (WebCore::getRawCookies):
    (WebCore::deleteCookie):
    Pass first party URL (and null in deleteCookie, as there is none).
    
    * platform/network/mac/ResourceHandleMac.mm:
    (WebCore::ResourceHandle::platformLoadResourceSynchronously):
    Removed a call to shouldRelaxThirdPartyCookiePolicy(), which no longer exists
    in trunk.
    
    Source/WebKit/mac: 
    
    * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
    Handle the new case.
    
    Source/WebKit2: 
    
    * Shared/HTTPCookieAcceptPolicy.h:
    * UIProcess/API/C/WKAPICast.h:
    (WebKit::toHTTPCookieAcceptPolicy):
    (WebKit::toAPI):
    * UIProcess/API/C/WKCookieManager.h:
    Added the policy to appropriate switches and enums.
    
    WebKitLibraries: 
    
    * WebKitSystemInterface.h:
    * libWebKitSystemInterfaceLion.a:
    * libWebKitSystemInterfaceMavericks.a:
    * libWebKitSystemInterfaceMountainLion.a:
    Update WebKitSystemInterface.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    664c7b3d
Name
Last commit
Last update
..
win Loading commit data...
ChangeLog Loading commit data...
LLVMIncludesMountainLion.tar.bz2 Loading commit data...
LLVMLibrariesMountainLion.tar.bz2 Loading commit data...
WebKitSystemInterface.h Loading commit data...
libWebKitSystemInterfaceLion.a Loading commit data...
libWebKitSystemInterfaceMavericks.a Loading commit data...
libWebKitSystemInterfaceMountainLion.a Loading commit data...