Changeset 162999 in webkit


Ignore:
Timestamp:
Jan 28, 2014, 8:44:56 PM (12 years ago)
Author:
jer.noble@apple.com
Message:

[Mac] Handle NSURLAuthenticationMethodServerTrust challenges from -resourceLoader:shouldWaitForResponseToAuthenticationChallenge:
https://bugs.webkit.org/show_bug.cgi?id=127806

Reviewed by Eric Carlson.

In addition to the normal "user/password" NSURLAuthenticationChallenges, the
-resourceLoader:shouldWaitForResponseToAuthenticationChallenge: delegate method will
ask us to confirm server certificate chains. Rather than pop up an authentication
dialog (which won't work anyway) we will now just drop such requests and continue
on normally.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r162998 r162999  
     12014-01-28  Jer Noble  <jer.noble@apple.com>
     2
     3        [Mac] Handle NSURLAuthenticationMethodServerTrust challenges from -resourceLoader:shouldWaitForResponseToAuthenticationChallenge:
     4        https://bugs.webkit.org/show_bug.cgi?id=127806
     5
     6        Reviewed by Eric Carlson.
     7
     8        In addition to the normal "user/password" NSURLAuthenticationChallenges, the
     9        -resourceLoader:shouldWaitForResponseToAuthenticationChallenge: delegate method will
     10        ask us to confirm server certificate chains. Rather than pop up an authentication
     11        dialog (which won't work anyway) we will now just drop such requests and continue
     12        on normally.
     13
     14        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     15        (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):
     16
    1172014-01-28  Commit Queue  <commit-queue@webkit.org>
    218
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r162879 r162999  
    21022102        return NO;
    21032103
     2104    if ([[[challenge protectionSpace] authenticationMethod] isEqualToString:NSURLAuthenticationMethodServerTrust])
     2105        return NO;
     2106
    21042107    RetainPtr<WebCoreAVFLoaderDelegate> strongSelf = self;
    21052108    RetainPtr<NSURLAuthenticationChallenge> strongChallenge = challenge;
Note: See TracChangeset for help on using the changeset viewer.