Changeset 176658 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 8:43:36 AM (11 years ago)
Author:
andersca@apple.com
Message:

Fix Windows build.

  • DumpRenderTree/win/DumpRenderTree.cpp:

(setAlwaysAcceptCookies):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r176637 r176658  
     12014-12-02  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix Windows build.
     4
     5        * DumpRenderTree/win/DumpRenderTree.cpp:
     6        (setAlwaysAcceptCookies):
     7
    182014-12-02  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
    29
  • trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp

    r174998 r176658  
    118118}
    119119
    120 bool setAlwaysAcceptCookies(bool alwaysAcceptCookies)
    121 {
    122 #if USE(CFNETWORK)
    123     COMPtr<IWebCookieManager> cookieManager;
    124     if (FAILED(WebKitCreateInstance(CLSID_WebCookieManager, 0, IID_IWebCookieManager, reinterpret_cast<void**>(&cookieManager))))
    125         return false;
    126     CFHTTPCookieStorageRef cookieStorage = 0;
    127     if (FAILED(cookieManager->cookieStorage(&cookieStorage)) || !cookieStorage)
    128         return false;
    129 
    130     WebKitCookieStorageAcceptPolicy cookieAcceptPolicy = alwaysAcceptCookies ? WebKitCookieStorageAcceptPolicyAlways : WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain;
    131     CFHTTPCookieStorageSetCookieAcceptPolicy(cookieStorage, cookieAcceptPolicy);
    132     return true;
    133 #else
    134     // FIXME: Implement!
     120bool setAlwaysAcceptCookies(bool)
     121{
     122    // FIXME: Implement this by making the Windows port use the testing network storage session and
     123    // modify its cookie storage policy.
    135124    return false;
    136 #endif
    137125}
    138126
Note: See TracChangeset for help on using the changeset viewer.