Changeset 196461 in webkit
- Timestamp:
- Feb 11, 2016 5:30:45 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r196457 r196461 1 2016-02-11 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r196453. 4 https://bugs.webkit.org/show_bug.cgi?id=154142 5 6 This change broke internal iOS builds (Requested by ryanhaddad 7 on #webkit). 8 9 Reverted changeset: 10 11 "Move Download authentication code to AuthenticationManager" 12 https://bugs.webkit.org/show_bug.cgi?id=154132 13 http://trac.webkit.org/changeset/196453 14 1 15 2016-02-11 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/Source/WebKit2/NetworkProcess/Downloads/Download.h
r196453 r196461 114 114 #endif 115 115 116 #if !USE(NETWORK_SESSION) 117 // Authentication 118 static void receivedCredential(const WebCore::AuthenticationChallenge&, const WebCore::Credential&); 119 static void receivedRequestToContinueWithoutCredential(const WebCore::AuthenticationChallenge&); 120 static void receivedCancellation(const WebCore::AuthenticationChallenge&); 121 static void receivedRequestToPerformDefaultHandling(const WebCore::AuthenticationChallenge&); 122 static void receivedChallengeRejection(const WebCore::AuthenticationChallenge&); 123 124 void useCredential(const WebCore::AuthenticationChallenge&, const WebCore::Credential&); 125 void continueWithoutCredential(const WebCore::AuthenticationChallenge&); 126 void cancelAuthenticationChallenge(const WebCore::AuthenticationChallenge&); 127 #endif 128 116 129 private: 117 130 // IPC::MessageSender -
trunk/Source/WebKit2/NetworkProcess/Downloads/ios/DownloadIOS.mm
r196453 r196461 158 158 } 159 159 160 void Download::receivedCredential(const AuthenticationChallenge&, const Credential&) 161 { 162 notImplemented(); 163 } 164 165 void Download::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&) 166 { 167 notImplemented(); 168 } 169 170 void Download::receivedCancellation(const AuthenticationChallenge&) 171 { 172 notImplemented(); 173 } 174 175 void Download::receivedRequestToPerformDefaultHandling(const WebCore::AuthenticationChallenge&) 176 { 177 notImplemented(); 178 } 179 180 void Download::receivedChallengeRejection(const WebCore::AuthenticationChallenge&) 181 { 182 notImplemented(); 183 } 184 160 185 } // namespace WebKit 161 186 -
trunk/Source/WebKit2/NetworkProcess/Downloads/mac/DownloadMac.mm
r196453 r196461 132 132 } 133 133 134 void Download::receivedCredential(const AuthenticationChallenge& authenticationChallenge, const Credential& credential) 135 { 136 [authenticationChallenge.sender() useCredential:credential.nsCredential() forAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 137 } 138 139 void Download::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge& authenticationChallenge) 140 { 141 [authenticationChallenge.sender() continueWithoutCredentialForAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 142 } 143 144 void Download::receivedCancellation(const AuthenticationChallenge& authenticationChallenge) 145 { 146 [authenticationChallenge.sender() cancelAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 147 } 148 149 void Download::receivedRequestToPerformDefaultHandling(const AuthenticationChallenge& authenticationChallenge) 150 { 151 [authenticationChallenge.sender() performDefaultHandlingForAuthenticationChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 152 } 153 154 void Download::receivedChallengeRejection(const AuthenticationChallenge& authenticationChallenge) 155 { 156 [authenticationChallenge.sender() rejectProtectionSpaceAndContinueWithChallenge:authenticationChallenge.nsURLAuthenticationChallenge()]; 157 } 158 134 159 } // namespace WebKit 135 160 -
trunk/Source/WebKit2/NetworkProcess/Downloads/soup/DownloadSoup.cpp
r196453 r196461 270 270 } 271 271 272 void Download::receivedCredential(const AuthenticationChallenge&, const Credential&) 273 { 274 notImplemented(); 275 } 276 277 void Download::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&) 278 { 279 notImplemented(); 280 } 281 282 void Download::receivedCancellation(const AuthenticationChallenge&) 283 { 284 notImplemented(); 285 } 286 287 void Download::continueWithoutCredential(const AuthenticationChallenge &) 288 { 289 notImplemented(); 290 } 291 292 void Download::useCredential(const AuthenticationChallenge&, const Credential&) 293 { 294 notImplemented(); 295 } 296 297 void Download::cancelAuthenticationChallenge(const AuthenticationChallenge&) 298 { 299 notImplemented(); 300 } 301 302 void Download::receivedRequestToPerformDefaultHandling(const AuthenticationChallenge&) 303 { 304 notImplemented(); 305 } 306 307 void Download::receivedChallengeRejection(const AuthenticationChallenge&) 308 { 309 notImplemented(); 310 } 311 272 312 } // namespace WebKit -
trunk/Source/WebKit2/PlatformEfl.cmake
r196453 r196461 29 29 30 30 Shared/API/c/efl/WKArrayEfl.cpp 31 32 Shared/Authentication/soup/AuthenticationManagerSoup.cpp33 31 34 32 Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp -
trunk/Source/WebKit2/PlatformGTK.cmake
r196453 r196461 57 57 58 58 Shared/API/c/cairo/WKImageCairo.cpp 59 60 Shared/Authentication/soup/AuthenticationManagerSoup.cpp61 59 62 60 Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp -
trunk/Source/WebKit2/PlatformMac.cmake
r196453 r196461 54 54 Shared/APIWebArchive.mm 55 55 Shared/APIWebArchiveResource.mm 56 57 Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm58 56 59 57 Shared/API/Cocoa/RemoteObjectInvocation.mm -
trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp
r196453 r196461 117 117 uint64_t challengeID = addChallengeToChallengeMap({pageID, authenticationChallenge 118 118 #if USE(NETWORK_SESSION) 119 , { }119 , ChallengeCompletionHandler() 120 120 #endif 121 121 }); … … 162 162 uint64_t challengeID = addChallengeToChallengeMap({pageID, authenticationChallenge 163 163 #if USE(NETWORK_SESSION) 164 , { }164 , ChallengeCompletionHandler() 165 165 #endif 166 166 }); … … 220 220 return; 221 221 } 222 #endif 223 224 if (coreClient) 225 coreClient->receivedCredential(challenge.challenge, credential); 226 else 227 receivedCredential(challenge.challenge, credential); 222 #else 223 if (!coreClient) { 224 // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads. 225 // We should not call Download::receivedCredential in the latter case. 226 Download::receivedCredential(challenge.challenge, credential); 227 return; 228 } 229 #endif 230 231 ASSERT(coreClient); 232 coreClient->receivedCredential(challenge.challenge, credential); 228 233 } 229 234 … … 248 253 return; 249 254 } 250 #endif 251 252 if (coreClient) 253 coreClient->receivedRequestToContinueWithoutCredential(challenge.challenge); 254 else 255 receivedRequestToContinueWithoutCredential(challenge.challenge); 255 #else 256 if (!coreClient) { 257 // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads. 258 // We should not call Download::receivedCredential in the latter case. 259 Download::receivedRequestToContinueWithoutCredential(challenge.challenge); 260 return; 261 } 262 #endif 263 264 ASSERT(coreClient); 265 coreClient->receivedRequestToContinueWithoutCredential(challenge.challenge); 256 266 } 257 267 … … 276 286 return; 277 287 } 278 #endif 279 280 if (coreClient) 281 coreClient->receivedCancellation(challenge.challenge); 282 else 283 receivedCancellation(challenge.challenge); 288 #else 289 if (!coreClient) { 290 // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads. 291 // We should not call Download::receivedCredential in the latter case. 292 Download::receivedCancellation(challenge.challenge); 293 return; 294 } 295 #endif 296 297 ASSERT(coreClient); 298 coreClient->receivedCancellation(challenge.challenge); 284 299 } 285 300 … … 304 319 return; 305 320 } 306 #endif 307 308 if (coreClient) 309 coreClient->receivedRequestToPerformDefaultHandling(challenge.challenge); 310 else 311 receivedRequestToPerformDefaultHandling(challenge.challenge); 321 #else 322 if (!coreClient) { 323 // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads. 324 // We should not call Download::receivedCredential in the latter case. 325 Download::receivedRequestToPerformDefaultHandling(challenge.challenge); 326 return; 327 } 328 #endif 329 330 ASSERT(coreClient); 331 coreClient->receivedRequestToPerformDefaultHandling(challenge.challenge); 312 332 } 313 333 … … 332 352 return; 333 353 } 334 #endif 335 336 if (coreClient) 337 coreClient->receivedChallengeRejection(challenge.challenge); 338 else 339 receivedChallengeRejection(challenge.challenge); 354 #else 355 if (!coreClient) { 356 // FIXME: The authentication client is null for downloads, but it can also be null for canceled loads. 357 // We should not call Download::receivedCredential in the latter case. 358 Download::receivedChallengeRejection(challenge.challenge); 359 return; 360 } 361 #endif 362 363 ASSERT(coreClient); 364 coreClient->receivedChallengeRejection(challenge.challenge); 340 365 } 341 366 -
trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.h
r196453 r196461 77 77 uint64_t outstandingAuthenticationChallengeCount() const { return m_challenges.size(); } 78 78 79 static void receivedCredential(const WebCore::AuthenticationChallenge&, const WebCore::Credential&);80 static void receivedRequestToContinueWithoutCredential(const WebCore::AuthenticationChallenge&);81 static void receivedCancellation(const WebCore::AuthenticationChallenge&);82 static void receivedRequestToPerformDefaultHandling(const WebCore::AuthenticationChallenge&);83 static void receivedChallengeRejection(const WebCore::AuthenticationChallenge&);84 85 79 private: 86 80 struct Challenge { -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r196453 r196461 1040 1040 52D5A1B11C57496200DE34A3 /* WebVideoFullscreenManagerProxy.mm in Sources */ = {isa = PBXBuildFile; fileRef = 52D5A1AC1C57494E00DE34A3 /* WebVideoFullscreenManagerProxy.mm */; }; 1041 1041 52D5A1B71C574A0200DE34A3 /* WebVideoFullscreenManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 52D5A1B41C5749F200DE34A3 /* WebVideoFullscreenManager.mm */; }; 1042 5C052F261C6D3BD30076E919 /* AuthenticationManagerCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5C052F241C6D3AB60076E919 /* AuthenticationManagerCocoa.mm */; };1043 1042 5C1426EC1C23F80900D41183 /* NetworkProcessCreationParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C1426E21C23F80500D41183 /* NetworkProcessCreationParameters.cpp */; }; 1044 1043 5C1426ED1C23F80900D41183 /* NetworkProcessCreationParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C1426E31C23F80500D41183 /* NetworkProcessCreationParameters.h */; }; … … 3132 3131 52D5A1B31C5749F200DE34A3 /* WebVideoFullscreenManager.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebVideoFullscreenManager.messages.in; sourceTree = "<group>"; }; 3133 3132 52D5A1B41C5749F200DE34A3 /* WebVideoFullscreenManager.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebVideoFullscreenManager.mm; sourceTree = "<group>"; }; 3134 5C052F241C6D3AB60076E919 /* AuthenticationManagerCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AuthenticationManagerCocoa.mm; path = Authentication/cocoa/AuthenticationManagerCocoa.mm; sourceTree = "<group>"; };3135 3133 5C1426E21C23F80500D41183 /* NetworkProcessCreationParameters.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = NetworkProcessCreationParameters.cpp; path = NetworkProcess/NetworkProcessCreationParameters.cpp; sourceTree = "<group>"; }; 3136 3134 5C1426E31C23F80500D41183 /* NetworkProcessCreationParameters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NetworkProcessCreationParameters.h; path = NetworkProcess/NetworkProcessCreationParameters.h; sourceTree = "<group>"; }; … … 5534 5532 isa = PBXGroup; 5535 5533 children = ( 5536 5C052F231C6D3AA10076E919 /* cocoa */,5537 5534 518E8EF616B2091C00E91429 /* mac */, 5538 5535 518E8EF316B2091C00E91429 /* AuthenticationManager.cpp */, … … 5651 5648 ); 5652 5649 name = IconDatabase; 5653 sourceTree = "<group>";5654 };5655 5C052F231C6D3AA10076E919 /* cocoa */ = {5656 isa = PBXGroup;5657 children = (5658 5C052F241C6D3AB60076E919 /* AuthenticationManagerCocoa.mm */,5659 );5660 name = cocoa;5661 5650 sourceTree = "<group>"; 5662 5651 }; … … 9252 9241 BCCF673312C7F15C008F9C35 /* OriginAndDatabases.cpp in Sources */, 9253 9242 7C387434172F5615001BD88A /* PageBanner.cpp in Sources */, 9254 5C052F261C6D3BD30076E919 /* AuthenticationManagerCocoa.mm in Sources */,9255 9243 7C6D37FC172F555F009D2847 /* PageBannerMac.mm in Sources */, 9256 9244 0FCB4E6318BBE3D9000FCFC9 /* PageClientImpl.mm in Sources */,
Note: See TracChangeset
for help on using the changeset viewer.