Changeset 176658 in webkit
- Timestamp:
- Dec 2, 2014, 8:43:36 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r176637 r176658 1 2014-12-02 Anders Carlsson <andersca@apple.com> 2 3 Fix Windows build. 4 5 * DumpRenderTree/win/DumpRenderTree.cpp: 6 (setAlwaysAcceptCookies): 7 1 8 2014-12-02 Eva Balazsfalvi <evab.u-szeged@partner.samsung.com> 2 9 -
trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp
r174998 r176658 118 118 } 119 119 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! 120 bool 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. 135 124 return false; 136 #endif137 125 } 138 126
Note:
See TracChangeset
for help on using the changeset viewer.