Changeset 73281 in webkit
- Timestamp:
- Dec 3, 2010 11:41:49 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 21 added
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r73279 r73281 1 2010-12-03 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 Groundwork for <rdar://problem/7660733> and https://bugs.webkit.org/show_bug.cgi?id=50191 6 WebKit2 Authentication Support 7 8 * WebCore.exp.in: 9 10 Expose the AuthenticationClient for WK2 platforms (Windows already does this): 11 * platform/network/mac/AuthenticationChallenge.h: 12 * platform/network/mac/AuthenticationMac.mm: 13 (-[WebCoreAuthenticationClientAsChallengeSender client]): 14 (WebCore::AuthenticationChallenge::authenticationClient): 15 16 * platform/network/qt/AuthenticationChallenge.h: 17 (WebCore::AuthenticationChallenge::authenticationClient): 18 1 19 2010-12-03 Ryosuke Niwa <rniwa@webkit.org> 2 20 -
trunk/WebCore/WebCore.exp.in
r73267 r73281 138 138 __ZN3WTF6StringC1EP8NSString 139 139 __ZN3WTF6StringC1EPK10__CFString 140 __ZN7WebCore10CredentialC1Ev 140 141 __ZN7WebCore10JSDocument6s_infoE 141 142 __ZN7WebCore10MouseEventC1ERKN3WTF12AtomicStringEbbNS1_10PassRefPtrINS_9DOMWindowEEEiiiiibbbbtNS5_INS_11EventTargetEEENS5_INS_9ClipboardEEEb … … 369 370 __ZN7WebCore15GraphicsContextD1Ev 370 371 __ZN7WebCore15JSDOMWindowBase18commonJSGlobalDataEv 372 __ZN7WebCore15ProtectionSpaceC1Ev 371 373 __ZN7WebCore15ScrollAlignment17alignCenterAlwaysE 372 374 __ZN7WebCore15ScrollAlignment19alignToEdgeIfNeededE … … 535 537 __ZN7WebCore26contextMenuItemTagOpenLinkEv 536 538 __ZN7WebCore26usesTestModeFocusRingColorEv 539 __ZN7WebCore27AuthenticationChallengeBaseC2Ev 537 540 __ZN7WebCore27CSSComputedStyleDeclarationC1EN3WTF10PassRefPtrINS_4NodeEEEbRKNS1_6StringE 538 541 __ZN7WebCore27DeviceOrientationClientMock14setOrientationEN3WTF10PassRefPtrINS_17DeviceOrientationEEE … … 1048 1051 __ZNK7WebCore21BackForwardController9backCountEv 1049 1052 __ZNK7WebCore21UserContentURLPattern7matchesERKNS_4KURLE 1053 __ZNK7WebCore23AuthenticationChallenge20authenticationClientEv 1050 1054 __ZNK7WebCore23FrameLoaderStateMachine15firstLayoutDoneEv 1051 1055 __ZNK7WebCore23FrameLoaderStateMachine23committingFirstRealLoadEv 1052 1056 __ZNK7WebCore26NetscapePlugInStreamLoader6isDoneEv 1057 __ZNK7WebCore27AuthenticationChallengeBase6isNullEv 1053 1058 __ZNK7WebCore4Font10floatWidthERKNS_7TextRunEPN3WTF7HashSetIPKNS_14SimpleFontDataENS4_7PtrHashIS8_EENS4_10HashTraitsIS8_EEEEPNS_13GlyphOverflowE 1054 1059 __ZNK7WebCore4Font8drawTextEPNS_15GraphicsContextERKNS_7TextRunERKNS_10FloatPointEii -
trunk/WebCore/platform/network/mac/AuthenticationChallenge.h
r50882 r73281 50 50 51 51 void setAuthenticationClient(AuthenticationClient*); // Changes sender to one that invokes client methods. 52 AuthenticationClient* authenticationClient() const; 52 53 53 54 private: -
trunk/WebCore/platform/network/mac/AuthenticationMac.mm
r58442 r73281 42 42 } 43 43 - (id)initWithAuthenticationClient:(AuthenticationClient*)client; 44 - (AuthenticationClient*)client; 44 45 - (void)detachClient; 45 46 @end … … 54 55 m_client = client; 55 56 return self; 57 } 58 59 - (AuthenticationClient*)client 60 { 61 return m_client; 56 62 } 57 63 … … 122 128 [(WebCoreAuthenticationClientAsChallengeSender *)m_sender.get() detachClient]; 123 129 } 130 } 131 132 AuthenticationClient* AuthenticationChallenge::authenticationClient() const 133 { 134 if ([m_sender.get() isMemberOfClass:[WebCoreAuthenticationClientAsChallengeSender class]]) 135 return [static_cast<WebCoreAuthenticationClientAsChallengeSender*>(m_sender.get()) client]; 136 137 return 0; 124 138 } 125 139 -
trunk/WebCore/platform/network/qt/AuthenticationChallenge.h
r30584 r73281 30 30 namespace WebCore { 31 31 32 class AuthenticationClient; 33 32 34 class AuthenticationChallenge : public AuthenticationChallengeBase { 33 35 public: … … 40 42 { 41 43 } 44 45 AuthenticationClient* authenticationClient() const { return 0; } // FIXME: Implement! 46 42 47 }; 43 48 -
trunk/WebKit2/ChangeLog
r73275 r73281 1 2010-12-03 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 Groundwork for <rdar://problem/7660733> and https://bugs.webkit.org/show_bug.cgi?id=50191 6 WebKit2 Authentication Support 7 8 With this patch in place, authentication challenges are sent up from WebCore and shipped over the IPC layer. 9 Client apps can implement the related client methods to attempt to continue without credentials or cancel a 10 challenge. 11 12 There's not yet API to inspect a challenge or create a credential to use in reply - that will come later. 13 14 Build-system changes: 15 * DerivedSources.make: 16 * DerivedSources.pro: 17 * WebKit2.pro: 18 * WebKit2.xcodeproj/project.pbxproj: 19 * win/WebKit2.vcproj: 20 * win/WebKit2Common.vsprops: 21 22 Messages and casts for IPC and APIs: 23 * Platform/CoreIPC/MessageID.h: 24 * Shared/API/c/WKBase.h: 25 * Shared/APIObject.h: 26 * Shared/WebCoreArgumentCoders.h: 27 * UIProcess/API/C/WKAPICast.h: 28 * WebProcess/WebProcess.cpp: 29 (WebKit::WebProcess::didReceiveMessage): 30 31 Stub out the AuthenticationChallenge class family: 32 * UIProcess/API/C/WKAuthenticationChallenge.cpp: Added. 33 (WKAuthenticationChallengeGetTypeID): 34 * UIProcess/API/C/WKAuthenticationChallenge.h: Added. 35 * UIProcess/API/C/WKCredential.cpp: Added. 36 (WKCredentialGetTypeID): 37 * UIProcess/API/C/WKCredential.h: Added. 38 * UIProcess/API/C/WKProtectionSpace.cpp: Added. 39 (WKProtectionSpaceGetTypeID): 40 * UIProcess/API/C/WKProtectionSpace.h: Added. 41 42 Add an Authentication listener for the client app to respond to: 43 * UIProcess/API/C/WKAuthenticationDecisionListener.cpp: Added. 44 (WKAuthenticationDecisionListenerGetTypeID): 45 (WKAuthenticationDecisionListenerUseCredential): 46 (WKAuthenticationDecisionListenerCancel): 47 * UIProcess/API/C/WKAuthenticationDecisionListener.h: Added. 48 49 Add Authentication related methods to the page loader client: 50 * UIProcess/API/C/WKPage.h: 51 52 Add empty implementations of the new API objects: 53 * UIProcess/Authentication: Added. 54 * UIProcess/Authentication/AuthenticationChallengeProxy.cpp: Added. 55 (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy): 56 (WebKit::AuthenticationChallengeProxy::~AuthenticationChallengeProxy): 57 (WebKit::AuthenticationChallengeProxy::useCredential): 58 (WebKit::AuthenticationChallengeProxy::cancel): 59 * UIProcess/Authentication/AuthenticationChallengeProxy.h: Added. 60 (WebKit::AuthenticationChallengeProxy::create): 61 (WebKit::AuthenticationChallengeProxy::listener): 62 (WebKit::AuthenticationChallengeProxy::type): 63 64 * UIProcess/Authentication/WebCredential.cpp: Added. 65 (WebKit::WebCredential::core): 66 * UIProcess/Authentication/WebCredential.h: Added. 67 (WebKit::WebCredential::create): 68 (WebKit::WebCredential::type): 69 * UIProcess/Authentication/WebProtectionSpace.cpp: Added. 70 (WebKit::WebProtectionSpace::WebProtectionSpace): 71 * UIProcess/Authentication/WebProtectionSpace.h: Added. 72 (WebKit::WebProtectionSpace::create): 73 (WebKit::WebProtectionSpace::type): 74 75 Add implementation of the Authentication decision listener: 76 * UIProcess/Authentication/AuthenticationDecisionListener.cpp: Added. 77 (WebKit::AuthenticationDecisionListener::AuthenticationDecisionListener): 78 (WebKit::AuthenticationDecisionListener::useCredential): 79 (WebKit::AuthenticationDecisionListener::cancel): 80 (WebKit::AuthenticationDecisionListener::detachChallenge): 81 * UIProcess/Authentication/AuthenticationDecisionListener.h: Added. 82 (WebKit::AuthenticationDecisionListener::create): 83 (WebKit::AuthenticationDecisionListener::type): 84 85 WebPage and PageLoaderClient glue: 86 * UIProcess/WebLoaderClient.cpp: 87 (WebKit::WebLoaderClient::canAuthenticateAgainstProtectionSpaceInFrame): 88 (WebKit::WebLoaderClient::didReceiveAuthenticationChallengeInFrame): 89 * UIProcess/WebLoaderClient.h: 90 * UIProcess/WebPageProxy.cpp: 91 (WebKit::WebPageProxy::canAuthenticateAgainstProtectionSpaceInFrame): 92 (WebKit::WebPageProxy::didReceiveAuthenticationChallenge): 93 * UIProcess/WebPageProxy.h: 94 * UIProcess/WebPageProxy.messages.in: 95 96 Add a manager to map the actual platform authentication challenges to a challenge ID, 97 as at least some platforms require the object identity to persist: 98 * WebProcess/Authentication: Added. 99 * WebProcess/Authentication/AuthenticationManager.cpp: Added. 100 (WebKit::generateAuthenticationChallengeID): 101 (WebKit::AuthenticationManager::shared): 102 (WebKit::AuthenticationManager::AuthenticationManager): 103 (WebKit::AuthenticationManager::didReceiveMessage): 104 (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge): 105 (WebKit::AuthenticationManager::useCredentialForChallenge): 106 (WebKit::AuthenticationManager::continueWithoutCredentialForChallenge): 107 (WebKit::AuthenticationManager::cancelChallenge): 108 * WebProcess/Authentication/AuthenticationManager.h: Added. 109 * WebProcess/Authentication/AuthenticationManager.messages.in: Added. 110 111 Hand off Authentication challenges to the manager to be sent over IPC: 112 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 113 (WebKit::WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): 114 (WebKit::WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace): 115 116 * UIProcess/API/qt/qwkpage.cpp: 117 1 118 2010-12-03 Anders Carlsson <andersca@apple.com> 2 119 -
trunk/WebKit2/DerivedSources.make
r71857 r73281 24 24 $(WebKit2)/PluginProcess \ 25 25 $(WebKit2)/Shared/Plugins \ 26 $(WebKit2)/WebProcess/Authentication \ 26 27 $(WebKit2)/WebProcess/Plugins \ 27 28 $(WebKit2)/WebProcess/WebPage \ … … 33 34 34 35 MESSAGE_RECEIVERS = \ 36 AuthenticationManager \ 35 37 DownloadProxy \ 36 38 NPObjectMessageReceiver \ -
trunk/WebKit2/DerivedSources.pro
r72792 r73281 86 86 VPATH = \ 87 87 PluginProcess \ 88 WebProcess/Authentication \ 88 89 WebProcess/Plugins \ 89 90 WebProcess/WebPage \ … … 94 95 95 96 MESSAGE_RECEIVERS = \ 97 AuthenticationManager.messages.in \ 96 98 DownloadProxy.messages.in \ 97 99 PluginControllerProxy.messages.in \ -
trunk/WebKit2/Platform/CoreIPC/MessageID.h
r71655 r73281 36 36 37 37 // Messages sent by the UI process to the web process. 38 MessageClassAuthenticationManager, 38 39 MessageClassDrawingArea, 39 40 MessageClassInjectedBundle, -
trunk/WebKit2/Shared/API/c/WKBase.h
r73267 r73281 61 61 /* WebKit2 main API types */ 62 62 63 typedef const struct OpaqueWKAuthenticationChallenge* WKAuthenticationChallengeRef; 64 typedef const struct OpaqueWKAuthenticationDecisionListener* WKAuthenticationDecisionListenerRef; 63 65 typedef const struct OpaqueWKBackForwardList* WKBackForwardListRef; 64 66 typedef const struct OpaqueWKBackForwardListItem* WKBackForwardListItemRef; 65 67 typedef const struct OpaqueWKContext* WKContextRef; 68 typedef const struct OpaqueWKCredential* WKCredentialRef; 66 69 typedef const struct OpaqueWKDownload* WKDownloadRef; 67 70 typedef const struct OpaqueWKFormSubmissionListener* WKFormSubmissionListenerRef; … … 74 77 typedef const struct OpaqueWKPageNamespace* WKPageNamespaceRef; 75 78 typedef const struct OpaqueWKPreferences* WKPreferencesRef; 79 typedef const struct OpaqueWKProtectionSpace* WKProtectionSpaceRef; 76 80 77 81 /* WebKit2 Bundle types */ -
trunk/WebKit2/Shared/APIObject.h
r73267 r73281 37 37 TypeNull = 0, 38 38 TypeArray, 39 TypeAuthenticationChallenge, 40 TypeAuthenticationDecisionListener, 39 41 TypeCertificateInfo, 40 42 TypeContextMenuItem, 43 TypeCredential, 41 44 TypeData, 42 45 TypeDictionary, 43 46 TypeError, 47 TypeProtectionSpace, 44 48 TypeSecurityOrigin, 45 49 TypeSerializedScriptValue, -
trunk/WebKit2/Shared/WebCoreArgumentCoders.h
r71868 r73281 31 31 #include "ArgumentEncoder.h" 32 32 #include "Arguments.h" 33 #include <WebCore/AuthenticationChallenge.h> 34 #include <WebCore/Credential.h> 33 35 #include <WebCore/Cursor.h> 34 36 #include <WebCore/FloatRect.h> … … 36 38 #include <WebCore/KeyboardEvent.h> 37 39 #include <WebCore/PluginData.h> 40 #include <WebCore/ProtectionSpace.h> 38 41 #include <WebCore/ResourceError.h> 39 42 #include <WebCore/ResourceRequest.h> … … 107 110 { 108 111 return decoder->decode(static_cast<HashMap<AtomicString, String, CaseFoldingHash>&>(headerMap)); 112 } 113 }; 114 115 template<> struct ArgumentCoder<WebCore::AuthenticationChallenge> { 116 static void encode(ArgumentEncoder* encoder, const WebCore::AuthenticationChallenge& challenge) 117 { 118 // FIXME: Implement 119 } 120 121 static bool decode(ArgumentDecoder* decoder, WebCore::AuthenticationChallenge& credential) 122 { 123 // FIXME: Implement 124 return true; 125 } 126 }; 127 128 template<> struct ArgumentCoder<WebCore::ProtectionSpace> { 129 static void encode(ArgumentEncoder* encoder, const WebCore::ProtectionSpace& challenge) 130 { 131 // FIXME: Implement 132 } 133 134 static bool decode(ArgumentDecoder* decoder, WebCore::ProtectionSpace& credential) 135 { 136 // FIXME: Implement 137 return true; 138 } 139 }; 140 141 template<> struct ArgumentCoder<WebCore::Credential> { 142 static void encode(ArgumentEncoder* encoder, const WebCore::Credential& credential) 143 { 144 // FIXME: Implement 145 } 146 147 static bool decode(ArgumentDecoder* decoder, WebCore::Credential& credential) 148 { 149 // FIXME: Implement 150 return true; 109 151 } 110 152 }; -
trunk/WebKit2/UIProcess/API/C/WKAPICast.h
r73066 r73281 37 37 namespace WebKit { 38 38 39 class AuthenticationChallengeProxy; 40 class AuthenticationDecisionListener; 39 41 class DownloadProxy; 40 42 class WebBackForwardList; 41 43 class WebBackForwardListItem; 42 44 class WebContext; 45 class WebCredential; 43 46 class WebFormSubmissionListenerProxy; 44 47 class WebFramePolicyListenerProxy; … … 50 53 class WebPageProxy; 51 54 class WebPreferences; 55 class WebProtectionSpace; 52 56 57 WK_ADD_API_MAPPING(WKAuthenticationChallengeRef, AuthenticationChallengeProxy) 58 WK_ADD_API_MAPPING(WKAuthenticationDecisionListenerRef, AuthenticationDecisionListener) 53 59 WK_ADD_API_MAPPING(WKBackForwardListItemRef, WebBackForwardListItem) 54 60 WK_ADD_API_MAPPING(WKBackForwardListRef, WebBackForwardList) 55 61 WK_ADD_API_MAPPING(WKContextRef, WebContext) 62 WK_ADD_API_MAPPING(WKCredentialRef, WebCredential) 56 63 WK_ADD_API_MAPPING(WKDownloadRef, DownloadProxy) 57 64 WK_ADD_API_MAPPING(WKFormSubmissionListenerRef, WebFormSubmissionListenerProxy) … … 66 73 WK_ADD_API_MAPPING(WKPageRef, WebPageProxy) 67 74 WK_ADD_API_MAPPING(WKPreferencesRef, WebPreferences) 75 WK_ADD_API_MAPPING(WKProtectionSpaceRef, WebProtectionSpace) 68 76 69 77 /* Enum conversions */ -
trunk/WebKit2/UIProcess/API/C/WKPage.h
r73066 r73281 65 65 typedef void (*WKPageDidDisplayInsecureContentForFrameCallback)(WKPageRef page, WKFrameRef frame, WKTypeRef userData, const void *clientInfo); 66 66 typedef void (*WKPageDidRunInsecureContentForFrameCallback)(WKPageRef page, WKFrameRef frame, WKTypeRef userData, const void *clientInfo); 67 typedef bool (*WKPageCanAuthenticateAgainstProtectionSpaceInFrameCallback)(WKPageRef page, WKFrameRef frame, WKProtectionSpaceRef protectionSpace, const void *clientInfo); 68 typedef void (*WKPageDidReceiveAuthenticationChallengeInFrameCallback)(WKPageRef page, WKFrameRef frame, WKAuthenticationChallengeRef authenticationChallenge, WKAuthenticationDecisionListenerRef listener, const void *clientInfo); 67 69 68 70 // Progress Client … … 95 97 WKPageDidDisplayInsecureContentForFrameCallback didDisplayInsecureContentForFrame; 96 98 WKPageDidRunInsecureContentForFrameCallback didRunInsecureContentForFrame; 99 WKPageCanAuthenticateAgainstProtectionSpaceInFrameCallback canAuthenticateAgainstProtectionSpaceInFrame; 100 WKPageDidReceiveAuthenticationChallengeInFrameCallback didReceiveAuthenticationChallengeInFrame; 97 101 98 102 // FIXME: Move to progress client. -
trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp
r73221 r73281 324 324 0, /* didDisplayInsecureContentForFrame */ 325 325 0, /* didRunInsecureContentForFrame */ 326 0, /* canAuthenticateAgainstProtectionSpaceInFrame */ 327 0, /* didReceiveAuthenticationChallengeInFrame */ 326 328 qt_wk_didStartProgress, 327 329 qt_wk_didChangeProgress, -
trunk/WebKit2/UIProcess/WebLoaderClient.cpp
r71746 r73281 137 137 } 138 138 139 bool WebLoaderClient::canAuthenticateAgainstProtectionSpaceInFrame(WebPageProxy* page, WebFrameProxy* frame, WebProtectionSpace* protectionSpace) 140 { 141 if (!m_client.canAuthenticateAgainstProtectionSpaceInFrame) 142 return false; 143 144 return m_client.canAuthenticateAgainstProtectionSpaceInFrame(toAPI(page), toAPI(frame), toAPI(protectionSpace), m_client.clientInfo); 145 } 146 147 void WebLoaderClient::didReceiveAuthenticationChallengeInFrame(WebPageProxy* page, WebFrameProxy* frame, AuthenticationChallengeProxy* authenticationChallenge, AuthenticationDecisionListener* listener) 148 { 149 if (!m_client.didReceiveAuthenticationChallengeInFrame) 150 return; 151 152 m_client.didReceiveAuthenticationChallengeInFrame(toAPI(page), toAPI(frame), toAPI(authenticationChallenge), toAPI(listener), m_client.clientInfo); 153 } 154 139 155 void WebLoaderClient::didStartProgress(WebPageProxy* page) 140 156 { -
trunk/WebKit2/UIProcess/WebLoaderClient.h
r71746 r73281 38 38 39 39 class APIObject; 40 class AuthenticationChallengeProxy; 41 class AuthenticationDecisionListener; 42 class WebFrameProxy; 40 43 class WebPageProxy; 41 class Web FrameProxy;44 class WebProtectionSpace; 42 45 43 46 class WebLoaderClient : public APIClient<WKPageLoaderClient> { … … 56 59 void didDisplayInsecureContentForFrame(WebPageProxy*, WebFrameProxy*, APIObject*); 57 60 void didRunInsecureContentForFrame(WebPageProxy*, WebFrameProxy*, APIObject*); 61 62 bool canAuthenticateAgainstProtectionSpaceInFrame(WebPageProxy*, WebFrameProxy*, WebProtectionSpace*); 63 void didReceiveAuthenticationChallengeInFrame(WebPageProxy*, WebFrameProxy*, AuthenticationChallengeProxy*, AuthenticationDecisionListener*); 58 64 59 65 void didStartProgress(WebPageProxy*); -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r73215 r73281 26 26 #include "WebPageProxy.h" 27 27 28 #include "AuthenticationChallengeProxy.h" 29 #include "AuthenticationDecisionListener.h" 28 30 #include "DrawingAreaProxy.h" 29 31 #include "FindIndicator.h" … … 56 58 #include "WebProcessMessages.h" 57 59 #include "WebProcessProxy.h" 60 #include "WebProtectionSpace.h" 58 61 #include "WebURLRequest.h" 59 62 #include <WebCore/FloatRect.h> … … 1530 1533 } 1531 1534 1535 void WebPageProxy::canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace& coreProtectionSpace, bool& canAuthenticate) 1536 { 1537 WebFrameProxy* frame = process()->webFrame(frameID); 1538 RefPtr<WebProtectionSpace> protectionSpace = WebProtectionSpace::create(coreProtectionSpace); 1539 1540 canAuthenticate = m_loaderClient.canAuthenticateAgainstProtectionSpaceInFrame(this, frame, protectionSpace.get()); 1541 } 1542 1543 void WebPageProxy::didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge& coreChallenge, uint64_t challengeID) 1544 { 1545 WebFrameProxy* frame = process()->webFrame(frameID); 1546 RefPtr<AuthenticationChallengeProxy> authenticationChallenge = AuthenticationChallengeProxy::create(coreChallenge, challengeID, this); 1547 1548 m_loaderClient.didReceiveAuthenticationChallengeInFrame(this, frame, authenticationChallenge.get(), authenticationChallenge->listener()); 1549 } 1550 1532 1551 } // namespace WebKit -
trunk/WebKit2/UIProcess/WebPageProxy.h
r73090 r73281 62 62 63 63 namespace WebCore { 64 class AuthenticationChallenge; 64 65 class Cursor; 65 66 class FloatRect; 66 67 class IntSize; 68 class ProtectionSpace; 67 69 struct ViewportArguments; 68 70 struct WindowFeatures; … … 378 380 #endif 379 381 382 void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate); 383 void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID); 384 380 385 PageClient* m_pageClient; 381 386 WebLoaderClient m_loaderClient; -
trunk/WebKit2/UIProcess/WebPageProxy.messages.in
r73036 r73281 136 136 DidChangeAcceleratedCompositing(bool compositing) -> (WebKit::DrawingAreaInfo newDrawingArea) 137 137 #endif 138 139 # Authentication 140 CanAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, WebCore::ProtectionSpace protectionSpace) -> (bool canAuthenticate) 141 DidReceiveAuthenticationChallenge(uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID) 138 142 } -
trunk/WebKit2/WebKit2.pro
r73267 r73281 131 131 UIProcess/API/cpp/qt \ 132 132 UIProcess/API/qt \ 133 UIProcess/Authentication \ 133 134 UIProcess/Downloads \ 134 135 UIProcess/Launcher \ … … 136 137 UIProcess/qt \ 137 138 WebProcess \ 139 WebProcess/Authentication \ 138 140 WebProcess/Downloads \ 139 141 WebProcess/Downloads/qt \ … … 160 162 161 163 WEBKIT2_GENERATED_HEADERS = \ 164 $$WEBKIT2_GENERATED_SOURCES_DIR/AuthenticationManagerMessages.h \ 162 165 $$WEBKIT2_GENERATED_SOURCES_DIR/DownloadProxyMessages.h \ 163 166 $$WEBKIT2_GENERATED_SOURCES_DIR/PluginControllerProxyMessages.h \ … … 175 178 176 179 WEBKIT2_GENERATED_SOURCES = \ 180 $$WEBKIT2_GENERATED_SOURCES_DIR/AuthenticationManagerMessageReceiver.cpp \ 177 181 $$WEBKIT2_GENERATED_SOURCES_DIR/DownloadProxyMessageReceiver.cpp \ 178 182 $$WEBKIT2_GENERATED_SOURCES_DIR/PluginControllerProxyMessageReceiver.cpp \ … … 263 267 Shared/qt/WebEventFactoryQt.h \ 264 268 UIProcess/API/C/WKAPICast.h \ 269 UIProcess/API/C/WKAuthenticationChallenge.h \ 270 UIProcess/API/C/WKAuthenticationDecisionListener.h \ 265 271 UIProcess/API/C/WKBackForwardList.h \ 266 272 UIProcess/API/C/WKBackForwardListItem.h \ 267 273 UIProcess/API/C/WKContext.h \ 268 274 UIProcess/API/C/WKContextPrivate.h \ 275 UIProcess/API/C/WKCredential.h \ 269 276 UIProcess/API/C/WKDownload.h \ 270 277 UIProcess/API/C/WKFrame.h \ … … 278 285 UIProcess/API/C/WKPreferences.h \ 279 286 UIProcess/API/C/WKPreferencesPrivate.h \ 287 UIProcess/API/C/WKProtectionSpace.h \ 280 288 UIProcess/API/C/WebKit2.h \ 281 289 UIProcess/API/C/qt/WKNativeEvent.h \ … … 290 298 UIProcess/API/qt/qwkpage_p.h \ 291 299 UIProcess/API/qt/qwkpreferences.h \ 300 UIProcess/Authentication/AuthenticationChallengeProxy.h \ 301 UIProcess/Authentication/AuthenticationDecisionListener.h \ 302 UIProcess/Authentication/WebCredential.h \ 303 UIProcess/Authentication/WebProtectionSpace.h \ 292 304 UIProcess/ChunkedUpdateDrawingAreaProxy.h \ 293 305 UIProcess/Downloads/DownloadProxy.h \ … … 330 342 UIProcess/qt/WebContextMenuProxyQt.h \ 331 343 UIProcess/qt/WebPopupMenuProxyQt.h \ 344 WebProcess/Authentication/AuthenticationManager.h \ 332 345 WebProcess/Downloads/Download.h \ 333 346 WebProcess/Downloads/DownloadManager.h \ … … 449 462 Shared/qt/WebURLRequestQt.cpp \ 450 463 Shared/qt/WebURLResponseQt.cpp \ 464 UIProcess/API/C/WKAuthenticationChallenge.cpp \ 465 UIProcess/API/C/WKAuthenticationDecisionListener.cpp \ 451 466 UIProcess/API/C/WKBackForwardList.cpp \ 452 467 UIProcess/API/C/WKBackForwardListItem.cpp \ 453 468 UIProcess/API/C/WKContext.cpp \ 469 UIProcess/API/C/WKCredential.cpp \ 454 470 UIProcess/API/C/WKDownload.cpp \ 455 471 UIProcess/API/C/WKFrame.cpp \ … … 461 477 UIProcess/API/C/WKPageNamespace.cpp \ 462 478 UIProcess/API/C/WKPreferences.cpp \ 479 UIProcess/API/C/WKProtectionSpace.cpp \ 463 480 UIProcess/API/cpp/qt/WKStringQt.cpp \ 464 481 UIProcess/API/cpp/qt/WKURLQt.cpp \ … … 468 485 UIProcess/API/qt/qwkpage.cpp \ 469 486 UIProcess/API/qt/qwkpreferences.cpp \ 487 UIProcess/Authentication/AuthenticationChallengeProxy.cpp \ 488 UIProcess/Authentication/AuthenticationDecisionListener.cpp \ 489 UIProcess/Authentication/WebCredential.cpp \ 490 UIProcess/Authentication/WebProtectionSpace.cpp \ 470 491 UIProcess/ChunkedUpdateDrawingAreaProxy.cpp \ 471 492 UIProcess/Downloads/DownloadProxy.cpp \ … … 515 536 UIProcess/qt/WebPopupMenuProxyQt.cpp \ 516 537 UIProcess/qt/WebPreferencesQt.cpp \ 538 WebProcess/Authentication/AuthenticationManager.cpp \ 517 539 WebProcess/Downloads/Download.cpp \ 518 540 WebProcess/Downloads/DownloadManager.cpp \ -
trunk/WebKit2/WebKit2.xcodeproj/project.pbxproj
r73267 r73281 206 206 512935E31288D97800A4B695 /* InjectedBundlePageContextMenuClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512935E11288D97800A4B695 /* InjectedBundlePageContextMenuClient.cpp */; }; 207 207 512935E41288D97800A4B695 /* InjectedBundlePageContextMenuClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 512935E21288D97800A4B695 /* InjectedBundlePageContextMenuClient.h */; }; 208 512F588A12A8836600629530 /* AuthenticationManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F588712A8836600629530 /* AuthenticationManager.cpp */; }; 209 512F588B12A8836600629530 /* AuthenticationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F588812A8836600629530 /* AuthenticationManager.h */; }; 210 512F588C12A8836600629530 /* AuthenticationManager.messages.in in Resources */ = {isa = PBXBuildFile; fileRef = 512F588912A8836600629530 /* AuthenticationManager.messages.in */; }; 211 512F589612A8838800629530 /* AuthenticationChallengeProxy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F588E12A8838800629530 /* AuthenticationChallengeProxy.cpp */; }; 212 512F589712A8838800629530 /* AuthenticationChallengeProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F588F12A8838800629530 /* AuthenticationChallengeProxy.h */; }; 213 512F589812A8838800629530 /* AuthenticationDecisionListener.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F589012A8838800629530 /* AuthenticationDecisionListener.cpp */; }; 214 512F589912A8838800629530 /* AuthenticationDecisionListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F589112A8838800629530 /* AuthenticationDecisionListener.h */; }; 215 512F589A12A8838800629530 /* WebCredential.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F589212A8838800629530 /* WebCredential.cpp */; }; 216 512F589B12A8838800629530 /* WebCredential.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F589312A8838800629530 /* WebCredential.h */; }; 217 512F589C12A8838800629530 /* WebProtectionSpace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F589412A8838800629530 /* WebProtectionSpace.cpp */; }; 218 512F589D12A8838800629530 /* WebProtectionSpace.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F589512A8838800629530 /* WebProtectionSpace.h */; }; 219 512F58A212A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F58A012A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp */; }; 220 512F58A312A883AD00629530 /* AuthenticationManagerMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F58A112A883AD00629530 /* AuthenticationManagerMessages.h */; }; 221 512F58F512A88A5400629530 /* WKAuthenticationChallenge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F58ED12A88A5400629530 /* WKAuthenticationChallenge.cpp */; }; 222 512F58F612A88A5400629530 /* WKAuthenticationChallenge.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F58EE12A88A5400629530 /* WKAuthenticationChallenge.h */; }; 223 512F58F712A88A5400629530 /* WKAuthenticationDecisionListener.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F58EF12A88A5400629530 /* WKAuthenticationDecisionListener.cpp */; }; 224 512F58F812A88A5400629530 /* WKAuthenticationDecisionListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F58F012A88A5400629530 /* WKAuthenticationDecisionListener.h */; }; 225 512F58F912A88A5400629530 /* WKCredential.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F58F112A88A5400629530 /* WKCredential.cpp */; }; 226 512F58FA12A88A5400629530 /* WKCredential.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F58F212A88A5400629530 /* WKCredential.h */; }; 227 512F58FB12A88A5400629530 /* WKProtectionSpace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 512F58F312A88A5400629530 /* WKProtectionSpace.cpp */; }; 228 512F58FC12A88A5400629530 /* WKProtectionSpace.h in Headers */ = {isa = PBXBuildFile; fileRef = 512F58F412A88A5400629530 /* WKProtectionSpace.h */; }; 208 229 5153569C1291B1D2000749DC /* WebPageContextMenuClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5153569A1291B1D2000749DC /* WebPageContextMenuClient.cpp */; }; 209 230 5153569D1291B1D2000749DC /* WebPageContextMenuClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 5153569B1291B1D2000749DC /* WebPageContextMenuClient.h */; }; … … 811 832 512935E11288D97800A4B695 /* InjectedBundlePageContextMenuClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundlePageContextMenuClient.cpp; sourceTree = "<group>"; }; 812 833 512935E21288D97800A4B695 /* InjectedBundlePageContextMenuClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InjectedBundlePageContextMenuClient.h; sourceTree = "<group>"; }; 834 512F588712A8836600629530 /* AuthenticationManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AuthenticationManager.cpp; sourceTree = "<group>"; }; 835 512F588812A8836600629530 /* AuthenticationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationManager.h; sourceTree = "<group>"; }; 836 512F588912A8836600629530 /* AuthenticationManager.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AuthenticationManager.messages.in; sourceTree = "<group>"; }; 837 512F588E12A8838800629530 /* AuthenticationChallengeProxy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AuthenticationChallengeProxy.cpp; sourceTree = "<group>"; }; 838 512F588F12A8838800629530 /* AuthenticationChallengeProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationChallengeProxy.h; sourceTree = "<group>"; }; 839 512F589012A8838800629530 /* AuthenticationDecisionListener.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AuthenticationDecisionListener.cpp; sourceTree = "<group>"; }; 840 512F589112A8838800629530 /* AuthenticationDecisionListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationDecisionListener.h; sourceTree = "<group>"; }; 841 512F589212A8838800629530 /* WebCredential.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCredential.cpp; sourceTree = "<group>"; }; 842 512F589312A8838800629530 /* WebCredential.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCredential.h; sourceTree = "<group>"; }; 843 512F589412A8838800629530 /* WebProtectionSpace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebProtectionSpace.cpp; sourceTree = "<group>"; }; 844 512F589512A8838800629530 /* WebProtectionSpace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebProtectionSpace.h; sourceTree = "<group>"; }; 845 512F58A012A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AuthenticationManagerMessageReceiver.cpp; sourceTree = "<group>"; }; 846 512F58A112A883AD00629530 /* AuthenticationManagerMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationManagerMessages.h; sourceTree = "<group>"; }; 847 512F58ED12A88A5400629530 /* WKAuthenticationChallenge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKAuthenticationChallenge.cpp; sourceTree = "<group>"; }; 848 512F58EE12A88A5400629530 /* WKAuthenticationChallenge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKAuthenticationChallenge.h; sourceTree = "<group>"; }; 849 512F58EF12A88A5400629530 /* WKAuthenticationDecisionListener.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKAuthenticationDecisionListener.cpp; sourceTree = "<group>"; }; 850 512F58F012A88A5400629530 /* WKAuthenticationDecisionListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKAuthenticationDecisionListener.h; sourceTree = "<group>"; }; 851 512F58F112A88A5400629530 /* WKCredential.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKCredential.cpp; sourceTree = "<group>"; }; 852 512F58F212A88A5400629530 /* WKCredential.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKCredential.h; sourceTree = "<group>"; }; 853 512F58F312A88A5400629530 /* WKProtectionSpace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKProtectionSpace.cpp; sourceTree = "<group>"; }; 854 512F58F412A88A5400629530 /* WKProtectionSpace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKProtectionSpace.h; sourceTree = "<group>"; }; 813 855 5153569A1291B1D2000749DC /* WebPageContextMenuClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebPageContextMenuClient.cpp; sourceTree = "<group>"; }; 814 856 5153569B1291B1D2000749DC /* WebPageContextMenuClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPageContextMenuClient.h; sourceTree = "<group>"; }; … … 1614 1656 usesTabs = 0; 1615 1657 }; 1658 512F588612A8834700629530 /* Authentication */ = { 1659 isa = PBXGroup; 1660 children = ( 1661 512F588712A8836600629530 /* AuthenticationManager.cpp */, 1662 512F588812A8836600629530 /* AuthenticationManager.h */, 1663 512F588912A8836600629530 /* AuthenticationManager.messages.in */, 1664 ); 1665 path = Authentication; 1666 sourceTree = "<group>"; 1667 }; 1668 512F588D12A8836F00629530 /* Authentication */ = { 1669 isa = PBXGroup; 1670 children = ( 1671 512F588E12A8838800629530 /* AuthenticationChallengeProxy.cpp */, 1672 512F588F12A8838800629530 /* AuthenticationChallengeProxy.h */, 1673 512F589012A8838800629530 /* AuthenticationDecisionListener.cpp */, 1674 512F589112A8838800629530 /* AuthenticationDecisionListener.h */, 1675 512F589212A8838800629530 /* WebCredential.cpp */, 1676 512F589312A8838800629530 /* WebCredential.h */, 1677 512F589412A8838800629530 /* WebProtectionSpace.cpp */, 1678 512F589512A8838800629530 /* WebProtectionSpace.h */, 1679 ); 1680 path = Authentication; 1681 sourceTree = "<group>"; 1682 }; 1616 1683 51B3004D12529CF5000B5CA0 /* cf */ = { 1617 1684 isa = PBXGroup; … … 1627 1694 isa = PBXGroup; 1628 1695 children = ( 1696 512F588612A8834700629530 /* Authentication */, 1629 1697 1A61614C127798B5003ACD86 /* Downloads */, 1630 1698 BC204EDF11C83E72008F3375 /* InjectedBundle */, … … 1711 1779 children = ( 1712 1780 BC032DC410F4387C0058C15A /* API */, 1781 512F588D12A8836F00629530 /* Authentication */, 1713 1782 51B3004D12529CF5000B5CA0 /* cf */, 1714 1783 1AB7D4C71288AA9A00CFD08C /* Downloads */, … … 1810 1879 BCB63477116BF10600603215 /* WebKit2.h */, 1811 1880 BCDDB32C124EC2E10048D13C /* WKAPICast.h */, 1881 512F58ED12A88A5400629530 /* WKAuthenticationChallenge.cpp */, 1882 512F58EE12A88A5400629530 /* WKAuthenticationChallenge.h */, 1883 512F58EF12A88A5400629530 /* WKAuthenticationDecisionListener.cpp */, 1884 512F58F012A88A5400629530 /* WKAuthenticationDecisionListener.h */, 1812 1885 BC646C1611DD399F006455B0 /* WKBackForwardList.cpp */, 1813 1886 BC646C1711DD399F006455B0 /* WKBackForwardList.h */, … … 1817 1890 BCB9E2491120E15C00A137E0 /* WKContext.h */, 1818 1891 BCC938E01180DE440085E5FE /* WKContextPrivate.h */, 1892 512F58F112A88A5400629530 /* WKCredential.cpp */, 1893 512F58F212A88A5400629530 /* WKCredential.h */, 1819 1894 1AB7D78C1288CD9A00CFD08C /* WKDownload.cpp */, 1820 1895 1AB7D78B1288CD9A00CFD08C /* WKDownload.h */, … … 1840 1915 BCD597CE112B56AC00EC8C23 /* WKPreferences.h */, 1841 1916 762B7484120BBA2D00819339 /* WKPreferencesPrivate.h */, 1917 512F58F312A88A5400629530 /* WKProtectionSpace.cpp */, 1918 512F58F412A88A5400629530 /* WKProtectionSpace.h */, 1842 1919 ); 1843 1920 path = C; … … 2196 2273 isa = PBXGroup; 2197 2274 children = ( 2275 512F58A012A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp */, 2276 512F58A112A883AD00629530 /* AuthenticationManagerMessages.h */, 2198 2277 1AB7D6171288B9D900CFD08C /* DownloadProxyMessageReceiver.cpp */, 2199 2278 1AB7D6181288B9D900CFD08C /* DownloadProxyMessages.h */, … … 2529 2608 BC7B633D12A45D1200D174A4 /* WKBundlePageGroup.h in Headers */, 2530 2609 37F623B812A57B6200E3FDF6 /* WKFindOptions.h in Headers */, 2610 512F588B12A8836600629530 /* AuthenticationManager.h in Headers */, 2611 512F589712A8838800629530 /* AuthenticationChallengeProxy.h in Headers */, 2612 512F589912A8838800629530 /* AuthenticationDecisionListener.h in Headers */, 2613 512F589B12A8838800629530 /* WebCredential.h in Headers */, 2614 512F589D12A8838800629530 /* WebProtectionSpace.h in Headers */, 2615 512F58A312A883AD00629530 /* AuthenticationManagerMessages.h in Headers */, 2616 512F58F612A88A5400629530 /* WKAuthenticationChallenge.h in Headers */, 2617 512F58F812A88A5400629530 /* WKAuthenticationDecisionListener.h in Headers */, 2618 512F58FA12A88A5400629530 /* WKCredential.h in Headers */, 2619 512F58FC12A88A5400629530 /* WKProtectionSpace.h in Headers */, 2531 2620 F634445612A885C8000612D8 /* WebSecurityOrigin.h in Headers */, 2532 2621 F634445D12A885E9000612D8 /* WKSecurityOrigin.h in Headers */, … … 2636 2725 files = ( 2637 2726 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, 2727 512F588C12A8836600629530 /* AuthenticationManager.messages.in in Resources */, 2638 2728 ); 2639 2729 runOnlyForDeploymentPostprocessing = 0; … … 2926 3016 BC84EB1812A7100C0083F2DA /* WebPreferencesMac.mm in Sources */, 2927 3017 BC2DFBA312A761A500E732A3 /* WebPreferencesCF.cpp in Sources */, 3018 512F588A12A8836600629530 /* AuthenticationManager.cpp in Sources */, 3019 512F589612A8838800629530 /* AuthenticationChallengeProxy.cpp in Sources */, 3020 512F589812A8838800629530 /* AuthenticationDecisionListener.cpp in Sources */, 3021 512F589A12A8838800629530 /* WebCredential.cpp in Sources */, 3022 512F589C12A8838800629530 /* WebProtectionSpace.cpp in Sources */, 3023 512F58A212A883AD00629530 /* AuthenticationManagerMessageReceiver.cpp in Sources */, 3024 512F58F512A88A5400629530 /* WKAuthenticationChallenge.cpp in Sources */, 3025 512F58F712A88A5400629530 /* WKAuthenticationDecisionListener.cpp in Sources */, 3026 512F58F912A88A5400629530 /* WKCredential.cpp in Sources */, 3027 512F58FB12A88A5400629530 /* WKProtectionSpace.cpp in Sources */, 2928 3028 F634445C12A885E9000612D8 /* WKSecurityOrigin.cpp in Sources */, 2929 3029 ); -
trunk/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r72612 r73281 29 29 #include "NotImplemented.h" 30 30 31 #include "AuthenticationManager.h" 31 32 #include "InjectedBundleUserMessageCoders.h" 32 33 #include "PlatformCertificateInfo.h" … … 156 157 } 157 158 158 void WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge(DocumentLoader*, unsigned long identifier, const AuthenticationChallenge&) 159 { 160 notImplemented(); 159 void WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge(DocumentLoader*, unsigned long, const AuthenticationChallenge& challenge) 160 { 161 // FIXME: Authentication is a per-resource concept, but we don't do per-resource handling in the UIProcess at the API level quite yet. 162 // Once we do, we might need to make sure authentication fits with our solution. 163 164 WebPage* webPage = m_frame->page(); 165 if (!webPage) 166 return; 167 168 AuthenticationManager::shared().didReceiveAuthenticationChallenge(m_frame, challenge); 161 169 } 162 170 … … 167 175 168 176 #if USE(PROTECTION_SPACE_AUTH_CALLBACK) 169 bool WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace(DocumentLoader*, unsigned long identifier, const ProtectionSpace&) 170 { 171 notImplemented(); 172 return false; 177 bool WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace(DocumentLoader*, unsigned long, const ProtectionSpace& protectionSpace) 178 { 179 // FIXME: Authentication is a per-resource concept, but we don't do per-resource handling in the UIProcess at the API level quite yet. 180 // Once we do, we might need to make sure authentication fits with our solution. 181 182 WebPage* webPage = m_frame->page(); 183 if (!webPage) 184 return false; 185 186 bool canAuthenticate; 187 if (!webPage->sendSync(Messages::WebPageProxy::CanAuthenticateAgainstProtectionSpaceInFrame(m_frame->frameID(), protectionSpace), Messages::WebPageProxy::CanAuthenticateAgainstProtectionSpaceInFrame::Reply(canAuthenticate))) 188 return false; 189 190 return canAuthenticate; 173 191 } 174 192 #endif -
trunk/WebKit2/WebProcess/WebProcess.cpp
r73221 r73281 26 26 #include "WebProcess.h" 27 27 28 #include "AuthenticationManager.h" 28 29 #include "DownloadManager.h" 29 30 #include "InjectedBundle.h" … … 459 460 } 460 461 462 if (messageID.is<CoreIPC::MessageClassAuthenticationManager>()) { 463 AuthenticationManager::shared().didReceiveMessage(connection, messageID, arguments); 464 return; 465 } 466 461 467 if (messageID.is<CoreIPC::MessageClassInjectedBundle>()) { 462 468 if (!m_injectedBundle) -
trunk/WebKit2/win/WebKit2.vcproj
r73267 r73281 1100 1100 </File> 1101 1101 <Filter 1102 Name="Authentication" 1103 > 1104 <File 1105 RelativePath="..\WebProcess\Authentication\AuthenticationManager.cpp" 1106 > 1107 </File> 1108 <File 1109 RelativePath="..\WebProcess\Authentication\AuthenticationManager.h" 1110 > 1111 </File> 1112 <File 1113 RelativePath="..\WebProcess\Authentication\AuthenticationManager.messages.in" 1114 > 1115 </File> 1116 </Filter> 1117 <Filter 1102 1118 Name="WebCoreSupport" 1103 1119 > … … 2030 2046 </File> 2031 2047 <File 2048 RelativePath="..\UIProcess\API\C\WKAuthenticationChallenge.cpp" 2049 > 2050 </File> 2051 <File 2052 RelativePath="..\UIProcess\API\C\WKAuthenticationChallenge.h" 2053 > 2054 </File> 2055 <File 2056 RelativePath="..\UIProcess\API\C\WKAuthenticationDecisionListener.cpp" 2057 > 2058 </File> 2059 <File 2060 RelativePath="..\UIProcess\API\C\WKAuthenticationDecisionListener.h" 2061 > 2062 </File> 2063 <File 2032 2064 RelativePath="..\UIProcess\API\C\WKBackForwardList.cpp" 2033 2065 > … … 2066 2098 </File> 2067 2099 <File 2100 RelativePath="..\UIProcess\API\C\WKCredential.cpp" 2101 > 2102 </File> 2103 <File 2104 RelativePath="..\UIProcess\API\C\WKCredential.h" 2105 > 2106 </File> 2107 <File 2068 2108 RelativePath="..\UIProcess\API\C\WKDownload.cpp" 2069 2109 > … … 2155 2195 <File 2156 2196 RelativePath="..\UIProcess\API\C\WKPreferencesPrivate.h" 2197 > 2198 </File> 2199 <File 2200 RelativePath="..\UIProcess\API\C\WKProtectionSpace.cpp" 2201 > 2202 </File> 2203 <File 2204 RelativePath="..\UIProcess\API\C\WKProtectionSpace.h" 2157 2205 > 2158 2206 </File> … … 2194 2242 </File> 2195 2243 </Filter> 2244 </Filter> 2245 <Filter 2246 Name="Authentication" 2247 > 2248 <File 2249 RelativePath="..\UIProcess\Authentication\AuthenticationChallengeProxy.cpp" 2250 > 2251 </File> 2252 <File 2253 RelativePath="..\UIProcess\Authentication\AuthenticationChallengeProxy.h" 2254 > 2255 </File> 2256 <File 2257 RelativePath="..\UIProcess\Authentication\AuthenticationDecisionListener.cpp" 2258 > 2259 </File> 2260 <File 2261 RelativePath="..\UIProcess\Authentication\AuthenticationDecisionListener.h" 2262 > 2263 </File> 2264 <File 2265 RelativePath="..\UIProcess\Authentication\WebCredential.cpp" 2266 > 2267 </File> 2268 <File 2269 RelativePath="..\UIProcess\Authentication\WebCredential.h" 2270 > 2271 </File> 2272 <File 2273 RelativePath="..\UIProcess\Authentication\WebProtectionSpace.cpp" 2274 > 2275 </File> 2276 <File 2277 RelativePath="..\UIProcess\Authentication\WebProtectionSpace.h" 2278 > 2279 </File> 2196 2280 </Filter> 2197 2281 <Filter … … 2595 2679 Name="Derived Sources" 2596 2680 > 2681 <File 2682 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\AuthenticationManagerMessageReceiver.cpp" 2683 > 2684 </File> 2685 <File 2686 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\AuthenticationManagerMessages.h" 2687 > 2688 </File> 2597 2689 <File 2598 2690 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\DownloadProxyMessageReceiver.cpp" -
trunk/WebKit2/win/WebKit2Common.vsprops
r73060 r73281 7 7 <Tool 8 8 Name="VCCLCompilerTool" 9 AdditionalIncludeDirectories=""$(ProjectDir)\..\Platform";"$(ProjectDir)\..\Platform\CoreIPC";"$(ProjectDir)\..\PluginProcess";"$(ProjectDir)\..\Shared";"$(ProjectDir)\..\Shared\win";"$(ProjectDir)\..\Shared\API\c";"$(ProjectDir)\..\Shared\API\c\cf";"$(ProjectDir)\..\Shared\API\c\win";"$(ProjectDir)\..\Shared\CoreIPCSupport";"$(ProjectDir)\..\UIProcess";"$(ProjectDir)\..\UIProcess\API\C";"$(ProjectDir)\..\UIProcess\API\C\win";"$(ProjectDir)\..\UIProcess\API\cpp";"$(ProjectDir)\..\UIProcess\API\win";"$(ProjectDir)\..\UIProcess\ Downloads";"$(ProjectDir)\..\UIProcess\Launcher";"$(ProjectDir)\..\UIProcess\Plugins";"$(ProjectDir)\..\UIProcess\win";"$(ProjectDir)\..\WebProcess";"$(ProjectDir)\..\WebProcess\WebCoreSupport";"$(ProjectDir)\..\WebProcess\WebCoreSupport\win";"$(ProjectDir)\..\WebProcess\WebPage";"$(ProjectDir)\..\WebProcess\WebPage\win";"$(ProjectDir)\..\WebProcess\InjectedBundle";"$(ProjectDir)\..\WebProcess\InjectedBundle\API\c";"$(ProjectDir)\..\WebProcess\InjectedBundle\DOM";"$(ProjectDir)\..\WebProcess\InjectedBundle\win";"$(ProjectDir)\..\WebProcess\Plugins";"$(ProjectDir)\..\WebProcess\Plugins\Netscape";"$(ProjectDir)\..\WebProcess\win";"$(ProjectDir)\..\WebProcess\Downloads";"$(ProjectDir)\..\WebProcess\Downloads\cf";"$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources";"$(WebKitOutputDir)\Include";"$(WebKitOutputDir)\Include\private";"$(WebKitLibrariesDir)\Include";"$(WebKitLibrariesDir)\Include\private";"$(WebKitLibrariesDir)\Include\pthreads";"$(WebKitOutputDir)\Include\JavaScriptCore";"$(WebKitOutputDir)\Include\private\JavaScriptCore";"$(WebKitLibrariesDir)\Include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\private\JavaScriptCore";"$(WebKitOutputDir)\Include\WebCore\ForwardingHeaders";"$(WebKitLibrariesDir)\Include\WebCore\ForwardingHeaders""9 AdditionalIncludeDirectories=""$(ProjectDir)\..\Platform";"$(ProjectDir)\..\Platform\CoreIPC";"$(ProjectDir)\..\PluginProcess";"$(ProjectDir)\..\Shared";"$(ProjectDir)\..\Shared\win";"$(ProjectDir)\..\Shared\API\c";"$(ProjectDir)\..\Shared\API\c\cf";"$(ProjectDir)\..\Shared\API\c\win";"$(ProjectDir)\..\Shared\CoreIPCSupport";"$(ProjectDir)\..\UIProcess";"$(ProjectDir)\..\UIProcess\API\C";"$(ProjectDir)\..\UIProcess\API\C\win";"$(ProjectDir)\..\UIProcess\API\cpp";"$(ProjectDir)\..\UIProcess\API\win";"$(ProjectDir)\..\UIProcess\Authentication";"$(ProjectDir)\..\UIProcess\Downloads";"$(ProjectDir)\..\UIProcess\Launcher";"$(ProjectDir)\..\UIProcess\Plugins";"$(ProjectDir)\..\UIProcess\win";"$(ProjectDir)\..\WebProcess";"$(ProjectDir)\..\WebProcess\WebCoreSupport";"$(ProjectDir)\..\WebProcess\WebCoreSupport\win";"$(ProjectDir)\..\WebProcess\WebPage";"$(ProjectDir)\..\WebProcess\WebPage\win";"$(ProjectDir)\..\WebProcess\InjectedBundle";"$(ProjectDir)\..\WebProcess\InjectedBundle\API\c";"$(ProjectDir)\..\WebProcess\InjectedBundle\DOM";"$(ProjectDir)\..\WebProcess\InjectedBundle\win";"$(ProjectDir)\..\WebProcess\Plugins";"$(ProjectDir)\..\WebProcess\Plugins\Netscape";"$(ProjectDir)\..\WebProcess\win";"$(ProjectDir)\..\WebProcess\Authentication";"$(ProjectDir)\..\WebProcess\Downloads";"$(ProjectDir)\..\WebProcess\Downloads\cf";"$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources";"$(WebKitOutputDir)\Include";"$(WebKitOutputDir)\Include\private";"$(WebKitLibrariesDir)\Include";"$(WebKitLibrariesDir)\Include\private";"$(WebKitLibrariesDir)\Include\pthreads";"$(WebKitOutputDir)\Include\JavaScriptCore";"$(WebKitOutputDir)\Include\private\JavaScriptCore";"$(WebKitLibrariesDir)\Include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\private\JavaScriptCore";"$(WebKitOutputDir)\Include\WebCore\ForwardingHeaders";"$(WebKitLibrariesDir)\Include\WebCore\ForwardingHeaders"" 10 10 PreprocessorDefinitions="_USRDLL;WEBKIT_EXPORTS;FRAMEWORK_NAME=WebKit;BUILDING_WEBKIT" 11 11 UsePrecompiledHeader="2" -
trunk/WebKitTools/ChangeLog
r73274 r73281 1 2010-12-03 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 Groundwork for <rdar://problem/7660733> and https://bugs.webkit.org/show_bug.cgi?id=50191 6 WebKit2 Authentication Support 7 8 Keep these builds working: 9 * MiniBrowser/mac/BrowserWindowController.m: 10 (-[BrowserWindowController awakeFromNib]): 11 12 * WebKitTestRunner/TestController.cpp: 13 (WTR::TestController::initialize): 14 1 15 2010-12-02 Mihai Parparita <mihaip@chromium.org> 2 16 -
trunk/WebKitTools/MiniBrowser/mac/BrowserWindowController.m
r72887 r73281 555 555 didDisplayInsecureContentForFrame, 556 556 didRunInsecureContentForFrame, 557 0, // canAuthenticateAgainstProtectionSpaceInFrame 558 0, // didReceiveAuthenticationChallengeInFrame 557 559 didStartProgress, 558 560 didChangeProgress, -
trunk/WebKitTools/WebKitTestRunner/TestController.cpp
r73215 r73281 258 258 0, // didDisplayInsecureContentForFrame 259 259 0, // didRunInsecureContentForFrame 260 0, // canAuthenticateAgainstProtectionSpaceInFrame 261 0, // didReceiveAuthenticationChallengeInFrame 260 262 0, // didStartProgress 261 263 0, // didChangeProgress
Note: See TracChangeset
for help on using the changeset viewer.