Changeset 240094 in webkit


Ignore:
Timestamp:
Jan 16, 2019, 4:20:11 PM (6 years ago)
Author:
achristensen@apple.com
Message:

sendBeacon to previously-unvisited https domain always fails
https://bugs.webkit.org/show_bug.cgi?id=193508

Reviewed by Geoffrey Garen.

  • NetworkProcess/PingLoad.cpp:

(WebKit::PingLoad::didReceiveChallenge):
If a ping load is doing a TLS handshake, continue if the server has good certificates.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240089 r240094  
     12019-01-16  Alex Christensen  <achristensen@webkit.org>
     2
     3        sendBeacon to previously-unvisited https domain always fails
     4        https://bugs.webkit.org/show_bug.cgi?id=193508
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * NetworkProcess/PingLoad.cpp:
     9        (WebKit::PingLoad::didReceiveChallenge):
     10        If a ping load is doing a TLS handshake, continue if the server has good certificates.
     11
    1122019-01-16  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebKit/NetworkProcess/PingLoad.cpp

    r239815 r240094  
    118118}
    119119
    120 void PingLoad::didReceiveChallenge(AuthenticationChallenge&&, ChallengeCompletionHandler&& completionHandler)
     120void PingLoad::didReceiveChallenge(AuthenticationChallenge&& challenge, ChallengeCompletionHandler&& completionHandler)
    121121{
    122122    RELEASE_LOG_IF_ALLOWED("didReceiveChallenge");
     123    if (challenge.protectionSpace().authenticationScheme() == ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested) {
     124        completionHandler(AuthenticationChallengeDisposition::PerformDefaultHandling, { });
     125        return;
     126    }
    123127    auto weakThis = makeWeakPtr(*this);
    124128    completionHandler(AuthenticationChallengeDisposition::Cancel, { });
Note: See TracChangeset for help on using the changeset viewer.