Changeset 70400 in webkit
- Timestamp:
- Oct 23, 2010 3:17:20 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70399 r70400 1 2010-10-23 Alexey Proskuryakov <ap@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 https://bugs.webkit.org/show_bug.cgi?id=48083 6 <rdar://problem/8489082> Need WebKit2 API for private browsing (48083) 7 8 * GNUmakefile.am: 9 * WebCore.gypi: 10 * WebCore.pro: 11 * WebCore.vcproj/WebCore.vcproj: 12 Added CookieStorage.h to build files that contain headers. 13 14 * WebCore.xcodeproj/project.pbxproj: Added CookieStorage.h and CookieStorageMac.mm. 15 16 * WebCore.exp.in: Export _wkSetCookieStoragePrivateBrowsingEnabled (WebKit initializes WKSI 17 on WebCore's behalf). 18 19 * platform/mac/WebCoreSystemInterface.h: 20 * platform/mac/WebCoreSystemInterface.mm: 21 More work for passing the function pointer down to WebCore. 22 23 * page/Settings.cpp: (WebCore::Settings::setPrivateBrowsingEnabled): Tell cookie manager to 24 when to use private browsing mode. Note that although this is a per-page setting, it 25 actually has global effect. 26 27 * page/Settings.h: Extended a comment about what private browsing does. 28 29 * platform/android/TemporaryLinkStubs.cpp: (setCookieStoragePrivateBrowsingEnabled): 30 * platform/chromium/TemporaryLinkStubs.cpp: (WebCore::setCookieStoragePrivateBrowsingEnabled): 31 * platform/efl/TemporaryLinkStubs.cpp: (WebCore::setCookieStoragePrivateBrowsingEnabled): 32 * platform/gtk/TemporaryLinkStubs.cpp: (WebCore::setCookieStoragePrivateBrowsingEnabled): 33 * platform/haiku/TemporaryLinkStubs.cpp: (WebCore::setCookieStoragePrivateBrowsingEnabled): 34 * platform/qt/TemporaryLinkStubsQt.cpp: (WebCore::setCookieStoragePrivateBrowsingEnabled): 35 Added an empty implementation for ports that don't implement private browsing, or implement 36 it in ways I cannot discover. 37 38 * platform/network/CookieStorage.h: Added. I'm not entirely sure how this is different from 39 CookieJar.h, just following a precedent already set by Windows port with CookieStorageWin.h. 40 41 * platform/network/mac/CookieStorageMac.mm: Added. 42 (WebCore::setCookieStoragePrivateBrowsingEnabled): Call a WKSI function to enable private 43 browsing mode for cookies. 44 45 * platform/network/cf/CookieStorageCFNet.cpp: 46 (WebCore::currentCookieStorage): Added ASSERT(isMainThread()). 47 (WebCore::setCurrentCookieStorage): Ditto. 48 (WebCore::setCookieStoragePrivateBrowsingEnabled): Set cookie storage to a private one 49 when in private browsing mode. ResourceHandle applies the storage to each individual request. 50 51 * platform/network/cf/CookieStorageCFNet.h: Added a comment explaining that these functions 52 are only for WebKit1. 53 1 54 2010-10-23 David Kilzer <ddkilzer@apple.com> 2 55 -
trunk/WebCore/GNUmakefile.am
r70300 r70400 2373 2373 WebCore/platform/network/BlobResourceHandle.h \ 2374 2374 WebCore/platform/network/BlobStorageData.h \ 2375 WebCore/platform/network/CookieStorage.h \ 2375 2376 WebCore/platform/network/Credential.cpp \ 2376 2377 WebCore/platform/network/Credential.h \ -
trunk/WebCore/WebCore.exp.in
r70333 r70400 1179 1179 _wkSetCONNECTProxyAuthorizationForStream 1180 1180 _wkSetCONNECTProxyForStream 1181 _wkSetCookieStoragePrivateBrowsingEnabled 1181 1182 _wkSetDragImage 1182 1183 _wkSetNSURLConnectionDefersCallbacks -
trunk/WebCore/WebCore.gypi
r70394 r70400 3015 3015 'platform/network/BlobRegistry.h', 3016 3016 'platform/network/BlobStorageData.h', 3017 'platform/network/CookieStorage.h', 3017 3018 'platform/network/Credential.cpp', 3018 3019 'platform/network/Credential.h', -
trunk/WebCore/WebCore.pro
r70300 r70400 2104 2104 platform/network/BlobResourceHandle.h \ 2105 2105 platform/network/BlobStorageData.h \ 2106 platform/network/CookieStorage.h \ 2106 2107 platform/network/Credential.h \ 2107 2108 platform/network/FormDataBuilder.h \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r70339 r70400 27507 27507 </File> 27508 27508 <File 27509 RelativePath="..\platform\network\CookieStorage.h" 27510 > 27511 </File> 27512 <File 27509 27513 RelativePath="..\platform\network\Credential.cpp" 27510 27514 > -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r70317 r70400 5334 5334 E12EDB7B0B308A78002704B6 /* EventTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = E12EDB7A0B308A78002704B6 /* EventTarget.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5335 5335 E12EDBEA0B308E0B002704B6 /* EventTarget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E12EDBE90B308E0B002704B6 /* EventTarget.cpp */; }; 5336 E13F01EB1270E10D00DFBA71 /* CookieStorage.h in Resources */ = {isa = PBXBuildFile; fileRef = E13F01EA1270E10D00DFBA71 /* CookieStorage.h */; }; 5337 E13F01F11270E19000DFBA71 /* CookieStorageMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = E13F01F01270E19000DFBA71 /* CookieStorageMac.mm */; }; 5336 5338 E15A36D71104572000B7B639 /* XMLNSNames.h in Headers */ = {isa = PBXBuildFile; fileRef = E15A36D61104572000B7B639 /* XMLNSNames.h */; }; 5337 5339 E15A36D91104572700B7B639 /* XMLNSNames.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E15A36D81104572700B7B639 /* XMLNSNames.cpp */; }; … … 11348 11350 E12EDB7A0B308A78002704B6 /* EventTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventTarget.h; sourceTree = "<group>"; }; 11349 11351 E12EDBE90B308E0B002704B6 /* EventTarget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EventTarget.cpp; sourceTree = "<group>"; }; 11352 E13F01EA1270E10D00DFBA71 /* CookieStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CookieStorage.h; sourceTree = "<group>"; }; 11353 E13F01F01270E19000DFBA71 /* CookieStorageMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CookieStorageMac.mm; sourceTree = "<group>"; }; 11350 11354 E15A36D61104572000B7B639 /* XMLNSNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLNSNames.h; sourceTree = "<group>"; }; 11351 11355 E15A36D81104572700B7B639 /* XMLNSNames.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLNSNames.cpp; sourceTree = "<group>"; }; … … 12955 12959 2EDEF1F2121B0EFC00726DB2 /* BlobStorageData.h */, 12956 12960 514C76580CE923A1007EF3CD /* Credential.cpp */, 12961 E13F01EA1270E10D00DFBA71 /* CookieStorage.h */, 12957 12962 514C76590CE923A1007EF3CD /* Credential.h */, 12958 12963 51A052321058774F00CC9E95 /* CredentialStorage.cpp */, … … 13002 13007 514C76420CE9234E007EF3CD /* AuthenticationMac.h */, 13003 13008 514C76430CE9234E007EF3CD /* AuthenticationMac.mm */, 13009 E13F01F01270E19000DFBA71 /* CookieStorageMac.mm */, 13004 13010 E1B4CD2410B322E200BFFD7E /* CredentialStorageMac.mm */, 13005 13011 514C76440CE9234E007EF3CD /* FormDataStreamMac.h */, … … 21268 21274 1AB1AE7A0C051FDE00139F4F /* zoomInCursor.png in Resources */, 21269 21275 1AB1AE7B0C051FDE00139F4F /* zoomOutCursor.png in Resources */, 21276 E13F01EB1270E10D00DFBA71 /* CookieStorage.h in Resources */, 21270 21277 ); 21271 21278 runOnlyForDeploymentPostprocessing = 0; … … 23697 23704 E18772F1126E2629003DD586 /* Language.cpp in Sources */, 23698 23705 7A1F2B52126C61B20006A7E6 /* InspectorClient.cpp in Sources */, 23706 E13F01F11270E19000DFBA71 /* CookieStorageMac.mm in Sources */, 23699 23707 ); 23700 23708 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/page/Settings.cpp
r68222 r70400 29 29 #include "BackForwardList.h" 30 30 #include "CachedResourceLoader.h" 31 #include "CookieStorage.h" 31 32 #include "DOMTimer.h" 32 33 #include "Database.h" … … 313 314 return; 314 315 316 // FIXME: We can only enable cookie private browsing mode globally, so it's misleading to have it as a per-page setting. 317 setCookieStoragePrivateBrowsingEnabled(privateBrowsingEnabled); 318 315 319 m_privateBrowsingEnabled = privateBrowsingEnabled; 316 320 m_page->privateBrowsingStateChanged(); -
trunk/WebCore/page/Settings.h
r68222 r70400 148 148 // - Back/Forward Page History 149 149 // - Page Search Results 150 // - HTTP Cookies 151 // - Plug-ins (that support NPNVprivateModeBool) 150 152 void setPrivateBrowsingEnabled(bool); 151 153 bool privateBrowsingEnabled() const { return m_privateBrowsingEnabled; } -
trunk/WebCore/platform/android/TemporaryLinkStubs.cpp
r66963 r70400 37 37 #include "ContextMenuItem.h" 38 38 #include "CookieJar.h" 39 #include "CookieStorage.h" 39 40 #include "Cursor.h" 40 41 #include "Database.h" … … 501 502 } 502 503 504 void setCookieStoragePrivateBrowsingEnabled(bool) 505 { 506 notImplemented(); 507 } 508 503 509 #endif -
trunk/WebCore/platform/chromium/TemporaryLinkStubs.cpp
r49947 r70400 31 31 #include "config.h" 32 32 33 #include "CookieStorage.h" 33 34 #include "KURL.h" 34 35 #include "NotImplemented.h" … … 49 50 } 50 51 52 void setCookieStoragePrivateBrowsingEnabled(bool) 53 { 54 notImplemented(); 55 } 56 51 57 } // namespace WebCore -
trunk/WebCore/platform/efl/TemporaryLinkStubs.cpp
r55342 r70400 31 31 32 32 #include "AXObjectCache.h" 33 #include "CookieStorage.h" 33 34 #include "Editor.h" 34 35 #include "FTPDirectoryDocument.h" … … 62 63 } 63 64 65 void setCookieStoragePrivateBrowsingEnabled(bool) 66 { 67 notImplemented(); 64 68 } 65 69 70 } 71 -
trunk/WebCore/platform/gtk/TemporaryLinkStubs.cpp
r43955 r70400 29 29 30 30 #include "AXObjectCache.h" 31 #include "CookieStorage.h" 31 32 #include "DNS.h" 32 33 #include "Editor.h" … … 47 48 String signedPublicKeyAndChallengeString(unsigned keySizeIndex, const String &challengeString, const KURL &url) { return String(); } 48 49 float userIdleTime() { notImplemented(); return FLT_MAX; } // return an arbitrarily high userIdleTime so that releasing pages from the page cache isn't postponed 50 void setCookieStoragePrivateBrowsingEnabled(bool) { notImplemented(); } 49 51 50 52 } -
trunk/WebCore/platform/haiku/TemporaryLinkStubs.cpp
r47295 r70400 34 34 #include "config.h" 35 35 36 #include "CookieStorage.h" 36 37 #include "KURL.h" 37 38 #include "NotImplemented.h" … … 77 78 } 78 79 80 void setCookieStoragePrivateBrowsingEnabled(bool) 81 { 82 notImplemented(); 83 } 84 79 85 } // namespace WebCore 80 86 -
trunk/WebCore/platform/mac/WebCoreSystemInterface.h
r70095 r70400 133 133 extern void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL); 134 134 extern void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*); 135 extern void (*wkSetCookieStoragePrivateBrowsingEnabled)(BOOL); 135 136 extern void (*wkSetDragImage)(NSImage*, NSPoint offset); 136 137 extern void (*wkSetNSURLConnectionDefersCallbacks)(NSURLConnection *, BOOL); -
trunk/WebCore/platform/mac/WebCoreSystemInterface.mm
r70095 r70400 68 68 void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL); 69 69 void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*); 70 void (*wkSetCookieStoragePrivateBrowsingEnabled)(BOOL); 70 71 void (*wkSetDragImage)(NSImage*, NSPoint offset); 71 72 void (*wkSetPatternBaseCTM)(CGContextRef, CGAffineTransform); -
trunk/WebCore/platform/network/cf/CookieStorageCFNet.cpp
r70339 r70400 37 37 CFHTTPCookieStorageRef currentCookieStorage() 38 38 { 39 ASSERT(isMainThread()); 40 39 41 if (s_cookieStorage) 40 42 return s_cookieStorage.get(); … … 44 46 void setCurrentCookieStorage(CFHTTPCookieStorageRef cookieStorage) 45 47 { 48 ASSERT(isMainThread()); 49 46 50 s_cookieStorage = cookieStorage; 47 51 } 48 52 53 void setCookieStoragePrivateBrowsingEnabled(bool enabled) 54 { 55 ASSERT(isMainThread()); 56 57 if (enabled) 58 s_cookieStorage.adoptPtr(wkCreatePrivateHTTPCookieStorage()); 59 else 60 s_cookieStorage = 0; 49 61 } 62 63 } -
trunk/WebCore/platform/network/cf/CookieStorageCFNet.h
r70339 r70400 32 32 33 33 CFHTTPCookieStorageRef currentCookieStorage(); 34 34 35 // Needed for WebKit1 API only. 35 36 void setCurrentCookieStorage(CFHTTPCookieStorageRef cookieStorage); 36 37 -
trunk/WebCore/platform/qt/TemporaryLinkStubsQt.cpp
r68377 r70400 36 36 #include "CachedResource.h" 37 37 #include "CookieJar.h" 38 #include "CookieStorage.h" 38 39 #include "Cursor.h" 39 40 #include "DNS.h" … … 124 125 #endif 125 126 127 void setCookieStoragePrivateBrowsingEnabled(bool) 128 { 129 notImplemented(); 130 } 131 126 132 } 127 133 -
trunk/WebKit/mac/ChangeLog
r70333 r70400 1 2010-10-23 Alexey Proskuryakov <ap@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 https://bugs.webkit.org/show_bug.cgi?id=48083 6 <rdar://problem/8489082> Need WebKit2 API for private browsing (48083) 7 8 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize the new method. 9 1 10 2010-10-22 Sam Weinig <sam@webkit.org> 2 11 -
trunk/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r70095 r70400 74 74 INIT(SetCONNECTProxyAuthorizationForStream); 75 75 INIT(SetCONNECTProxyForStream); 76 INIT(SetCookieStoragePrivateBrowsingEnabled); 76 77 INIT(SetDragImage); 77 78 INIT(SetNSURLConnectionDefersCallbacks); -
trunk/WebKit2/ChangeLog
r70387 r70400 1 2010-10-23 Alexey Proskuryakov <ap@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 https://bugs.webkit.org/show_bug.cgi?id=48083 6 <rdar://problem/8489082> Need WebKit2 API for private browsing (48083) 7 8 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface): 9 Initialize the new method. 10 1 11 2010-10-21 Timothy Hatcher <timothy@apple.com> 2 12 -
trunk/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r70095 r70400 80 80 INIT(SetCONNECTProxyAuthorizationForStream); 81 81 INIT(SetCONNECTProxyForStream); 82 INIT(SetCookieStoragePrivateBrowsingEnabled); 82 83 INIT(SetDragImage); 83 84 INIT(SetNSURLConnectionDefersCallbacks); -
trunk/WebKitLibraries/ChangeLog
r70320 r70400 1 2010-10-23 Alexey Proskuryakov <ap@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 https://bugs.webkit.org/show_bug.cgi?id=48083 6 <rdar://problem/8489082> Need WebKit2 API for private browsing (48083) 7 8 * WebKitSystemInterface.h: 9 * libWebKitSystemInterfaceLeopard.a: 10 * libWebKitSystemInterfaceSnowLeopard.a: 11 * win/include/WebKitSystemInterface/WebKitSystemInterface.h: 12 * win/lib/WebKitSystemInterface.lib: 13 * win/lib/WebKitSystemInterface_debug.lib: 14 Updated WebKitSystemInterface with necessary methods. 15 1 16 2010-10-22 Adam Roben <aroben@apple.com> 2 17 -
trunk/WebKitLibraries/WebKitSystemInterface.h
r69511 r70400 60 60 Class WKNSURLProtocolClassForRequest(NSURLRequest *request); 61 61 void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff); 62 63 void WKSetCookieStoragePrivateBrowsingEnabled(BOOL enabled); 62 64 63 65 unsigned WKGetNSAutoreleasePoolCount(void); -
trunk/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
r70131 r70400 86 86 void* wkGetSSLCertificateChainContext(CFDictionaryRef); 87 87 CFHTTPCookieStorageRef wkGetDefaultHTTPCookieStorage(); 88 CFHTTPCookieStorageRef wkCreatePrivateHTTPCookieStorage(); 88 89 void wkSetCFURLRequestShouldContentSniff(CFMutableURLRequestRef, bool); 89 90 CFStringRef wkCopyFoundationCacheDirectory();
Note: See TracChangeset
for help on using the changeset viewer.