[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
mjs
mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:56:36 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 63dddf4b8d56d416309e64b97d0599a8a4e60823
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Mar 5 14:03:07 2002 +0000
WebFoundation/
First cut at HTTP Authentication support and API. This fixes Radar
2858993
(HTTP Authentication challenges are not handled). However, there
are still many loose ends indicated by all the FIXMEs in the code.
New IFAuthenticationManager class and related classes:
* AuthenticationManager.subproj/IFAuthenticationHandler.h:
* AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.h:
* AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.m:
(dispatchToHandler), (dispatcherCopyDescription),
(-[IFAuthenticationHandlerDispatcher _dispatchToHandler]),
(-[IFAuthenticationHandlerDispatcher initWithAuthenticationHandler:]),
(-[IFAuthenticationHandlerDispatcher dealloc]),
(-[IFAuthenticationHandlerDispatcher authenticate:]),
(-[IFAuthenticationHandlerDispatcher hasHandler:]):
* AuthenticationManager.subproj/IFAuthenticationManager.h:
* AuthenticationManager.subproj/IFAuthenticationManager.m:
(-[IFAuthenticationManagerPrivate init]), (-[IFAuthenticationManagerPrivate
dealloc]), (-[IFAuthenticationManager dealloc]), (-[IFAuthenticationManager
init]), (+[IFAuthenticationManager sharedAuthenticationManager]),
(-[IFAuthenticationManager addAuthenticationHandler:]),
(-[IFAuthenticationManager removeAuthenticationHandler:]),
(IFNSURLRemoveAnythingAfterPath), (IFNSURLCanonicalRoot), (IFNSURLGetParent),
(-[IFAuthenticationManager realmForURL:]), (-[IFAuthenticationManager
realmKeyWithRealm:withURL:]), (-[IFAuthenticationManager
addCredentialsToInitialHTTPRequest:]), (-[IFAuthenticationManager
checkForAuthenticationFailureInHTTPResponse:withURL:]),
(-[IFAuthenticationManager invokeHandlersWithURL:realm:]),
(-[IFAuthenticationManager
addCredentialsToRetryHTTPRequest:afterFailureResponse:]):
* AuthenticationManager.subproj/IFAuthenticationManagerPrivate.h:
* AuthenticationManager.subproj/IFAuthenticationRequest.h:
* AuthenticationManager.subproj/IFAuthenticationRequest.m:
(-[IFAuthenticationRequest
initWithURL:realm:username:passwordSentInClear:previousFailures:]),
(+[IFAuthenticationRequest
authenticationRequestWithURL:realm:username:passwordSentInClear:previousFailures:
]), (-[IFAuthenticationRequest dealloc]), (-[IFAuthenticationRequest url]),
(-[IFAuthenticationRequest realm]), (-[IFAuthenticationRequest username]),
(-[IFAuthenticationRequest willPasswordBeSentInClear]),
(-[IFAuthenticationRequest previousFailures]):
* AuthenticationManager.subproj/IFAuthenticationResult.h:
* AuthenticationManager.subproj/IFAuthenticationResult.m:
(-[IFAuthenticationResult initWithUsername:password:]), (+[IFAuthenticationResult
authenticationResultWithUsername:password:]), (-[IFAuthenticationResult
dealloc]), (-[IFAuthenticationResult username]), (-[IFAuthenticationResult
password]):
Hook authentication into the loader:
* CacheLoader.subproj/IFHTTPURLProtocolHandler.h:
* CacheLoader.subproj/IFHTTPURLProtocolHandler.m: (-[IFHTTPURLProtocolHandler
initWithURLLoad:]), (-[IFHTTPURLProtocolHandler dealloc]),
(-[IFHTTPURLProtocolHandler retryAfterAuthenticationFailure:]),
(-[IFHTTPURLProtocolHandler createHTTPRequest]), (-[IFHTTPURLProtocolHandler
handleReadStreamEvent:event:]), (-[IFHTTPURLProtocolHandler
performHTTPHeaderRead:]):
Added a few more useful extensions:
* Misc.subproj/IFNSArrayExtensions.h:
* Misc.subproj/IFNSArrayExtensions.m: (-[NSArray
indexOfObjectSatisfyingPredicate:withObject:]):
* Misc.subproj/IFNSStringExtensions.h:
* Misc.subproj/IFNSStringExtensions.m: (-[NSString
parseAsKeyValuePairHandleQuotes:]), (-[NSString hasSubstring:atIndex:]),
(-[NSString encodeBase64]):
* Misc.subproj/IFNSURLExtensions.h:
* Misc.subproj/IFNSURLExtensions.m: (+[NSURL
URLWithScheme:user:password:host:port:path:parameter:query:fragment:]):
* WebFoundation.pbproj/project.pbxproj: Build updates.
* CacheLoader.subproj/IFFileURLProtocolHandler.m: (-[IFFileURLProtocolHandler
canCacheResourceData]): Added a random FIXME.
WebKit/
Removed references to IFAuthenticationHandler, since that protocol
now lives in WebFoundation and it's no longer quite appropriate to
include as part of a controller.
* WebView.subproj/IFBaseWebController.mm:
* WebView.subproj/IFWebController.h:
WebBrowser/
Added authentication support:
* AppController.m: (-[AppController awakeFromNib]): Install the
authentication handler.
Implementation of Alexander's authentication handler, which
currently prompts the user with a modal dialog. UI still needs
fine-tuning.
* AuthenticationHandler.h:
* AuthenticationHandler.m: (+[AuthenticationHandler install]),
(-[AuthenticationHandler init]), (-[AuthenticationHandler dealloc]),
(-[AuthenticationHandler authenticate:]), (-[AuthenticationHandler cancel:]),
(-[AuthenticationHandler logIn:]), (-[AuthenticationHandler loadNib]),
(-[AuthenticationHandler showAuthenticationPanel]):
* AuthenticationPanel.nib: UI for the authentication panel.
* BrowserDocument.m: Added newline at end of file.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 328973b..ac0f685 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,12 @@
+2002-03-05 Maciej Stachowiak <mjs at apple.com>
+
+ Removed references to IFAuthenticationHandler, since that protocol
+ now lives in WebFoundation and it's no longer quite appropriate to
+ include as part of a controller.
+
+ * WebView.subproj/IFBaseWebController.mm:
+ * WebView.subproj/IFWebController.h:
+
2002-03-04 Richard Williamson <rjw at apple.com>
Changes to support 'provisional' data sources.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 328973b..ac0f685 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,12 @@
+2002-03-05 Maciej Stachowiak <mjs at apple.com>
+
+ Removed references to IFAuthenticationHandler, since that protocol
+ now lives in WebFoundation and it's no longer quite appropriate to
+ include as part of a controller.
+
+ * WebView.subproj/IFBaseWebController.mm:
+ * WebView.subproj/IFWebController.h:
+
2002-03-04 Richard Williamson <rjw at apple.com>
Changes to support 'provisional' data sources.
diff --git a/WebKit/WebView.subproj/IFBaseWebController.mm b/WebKit/WebView.subproj/IFBaseWebController.mm
index ff31f13..1372697 100644
--- a/WebKit/WebView.subproj/IFBaseWebController.mm
+++ b/WebKit/WebView.subproj/IFBaseWebController.mm
@@ -169,15 +169,6 @@ static id IFLoadProgressMake()
}
-// ---------------------------------------------------------------------
-// IFAuthenticationHandler
-// ---------------------------------------------------------------------
-- (IFSimpleAuthenticationResult *) authenticate: (IFSimpleAuthenticationRequest *)request
-{
- [NSException raise:IFMethodNotYetImplemented format:@"IFBaseWebController::authenticate: is not implemented"];
- return nil;
-}
-
// ---------------------------------------------------------------------
// IFLoadHandler
diff --git a/WebKit/WebView.subproj/IFWebController.h b/WebKit/WebView.subproj/IFWebController.h
index 5a638c3..08f9a47 100644
--- a/WebKit/WebView.subproj/IFWebController.h
+++ b/WebKit/WebView.subproj/IFWebController.h
@@ -168,48 +168,6 @@ typedef enum {
=============================================================================
*/
-
- at interface IFSimpleAuthenticationResult
-{
- NSString *username;
- NSString *password;
- // May need an extra rememberThisPassword flag if the loader mechanism is
- // going to provide a persistent credentials cache (for starters we can have
- // just a session cache)
-}
- at end
-
- at interface IFSimpleAuthenticationRequest
-{
- NSURL *url; // nil if for something non-URI based
- NSString *domain; // http authentication domain or some representation of
- // auth domain for non-URI-based locations; otherwise nil.
- NSString *username; // username, if already provided, otherwise nil
- BOOL plaintextPassword; // password will be sent in the clear
- // TRUE for http basic auth or ftp
- // FALSE for http digest auth
- unsigned previousFailures; // number of times in a row authenticating to this
- // location has failed; useful to be able to show a
- // different dialog based on count
-}
- at end
-
-
- at protocol IFAuthenticationHandler
-// Can we make this work without blocking the UI, or do we need to make it explicitly async
-// somehow?
-- (IFSimpleAuthenticationResult *) authenticate: (IFSimpleAuthenticationRequest *)request;
-
-// do we need anything for fancier authentication schemes like kerberos or GSSAPI?
-
-// Do we provide a default dialog?
- at end
-
-
-/*
- =============================================================================
-
-*/
@protocol IFWebDataSourceErrorHandler
- receivedError: (IFError *)error forDataSource: (IFWebDataSource *)dataSource;
@end
@@ -249,7 +207,7 @@ typedef enum {
describe snippets of behavior, but do we explicity reference them anywhere,
or do we just use the umbrella protocol?]
*/
- at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFAuthenticationHandler, IFLocationChangeHandler>
+ at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFLocationChangeHandler>
// Called when a data source needs to create a frame. This method encapsulates the
diff --git a/WebKit/WebView.subproj/WebController.h b/WebKit/WebView.subproj/WebController.h
index 5a638c3..08f9a47 100644
--- a/WebKit/WebView.subproj/WebController.h
+++ b/WebKit/WebView.subproj/WebController.h
@@ -168,48 +168,6 @@ typedef enum {
=============================================================================
*/
-
- at interface IFSimpleAuthenticationResult
-{
- NSString *username;
- NSString *password;
- // May need an extra rememberThisPassword flag if the loader mechanism is
- // going to provide a persistent credentials cache (for starters we can have
- // just a session cache)
-}
- at end
-
- at interface IFSimpleAuthenticationRequest
-{
- NSURL *url; // nil if for something non-URI based
- NSString *domain; // http authentication domain or some representation of
- // auth domain for non-URI-based locations; otherwise nil.
- NSString *username; // username, if already provided, otherwise nil
- BOOL plaintextPassword; // password will be sent in the clear
- // TRUE for http basic auth or ftp
- // FALSE for http digest auth
- unsigned previousFailures; // number of times in a row authenticating to this
- // location has failed; useful to be able to show a
- // different dialog based on count
-}
- at end
-
-
- at protocol IFAuthenticationHandler
-// Can we make this work without blocking the UI, or do we need to make it explicitly async
-// somehow?
-- (IFSimpleAuthenticationResult *) authenticate: (IFSimpleAuthenticationRequest *)request;
-
-// do we need anything for fancier authentication schemes like kerberos or GSSAPI?
-
-// Do we provide a default dialog?
- at end
-
-
-/*
- =============================================================================
-
-*/
@protocol IFWebDataSourceErrorHandler
- receivedError: (IFError *)error forDataSource: (IFWebDataSource *)dataSource;
@end
@@ -249,7 +207,7 @@ typedef enum {
describe snippets of behavior, but do we explicity reference them anywhere,
or do we just use the umbrella protocol?]
*/
- at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFAuthenticationHandler, IFLocationChangeHandler>
+ at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFLocationChangeHandler>
// Called when a data source needs to create a frame. This method encapsulates the
diff --git a/WebKit/WebView.subproj/WebView.h b/WebKit/WebView.subproj/WebView.h
index 5a638c3..08f9a47 100644
--- a/WebKit/WebView.subproj/WebView.h
+++ b/WebKit/WebView.subproj/WebView.h
@@ -168,48 +168,6 @@ typedef enum {
=============================================================================
*/
-
- at interface IFSimpleAuthenticationResult
-{
- NSString *username;
- NSString *password;
- // May need an extra rememberThisPassword flag if the loader mechanism is
- // going to provide a persistent credentials cache (for starters we can have
- // just a session cache)
-}
- at end
-
- at interface IFSimpleAuthenticationRequest
-{
- NSURL *url; // nil if for something non-URI based
- NSString *domain; // http authentication domain or some representation of
- // auth domain for non-URI-based locations; otherwise nil.
- NSString *username; // username, if already provided, otherwise nil
- BOOL plaintextPassword; // password will be sent in the clear
- // TRUE for http basic auth or ftp
- // FALSE for http digest auth
- unsigned previousFailures; // number of times in a row authenticating to this
- // location has failed; useful to be able to show a
- // different dialog based on count
-}
- at end
-
-
- at protocol IFAuthenticationHandler
-// Can we make this work without blocking the UI, or do we need to make it explicitly async
-// somehow?
-- (IFSimpleAuthenticationResult *) authenticate: (IFSimpleAuthenticationRequest *)request;
-
-// do we need anything for fancier authentication schemes like kerberos or GSSAPI?
-
-// Do we provide a default dialog?
- at end
-
-
-/*
- =============================================================================
-
-*/
@protocol IFWebDataSourceErrorHandler
- receivedError: (IFError *)error forDataSource: (IFWebDataSource *)dataSource;
@end
@@ -249,7 +207,7 @@ typedef enum {
describe snippets of behavior, but do we explicity reference them anywhere,
or do we just use the umbrella protocol?]
*/
- at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFAuthenticationHandler, IFLocationChangeHandler>
+ at protocol IFWebController <IFLoadHandler, IFScriptContextHandler, IFLocationChangeHandler>
// Called when a data source needs to create a frame. This method encapsulates the
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list