⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236232 in webkit


Ignore:
Timestamp:
Sep 19, 2018, 5:13:25 PM (8 years ago)
Author:
achristensen@apple.com
Message:

REGRESSION(236154) C API clients not using WKPageSetPageNavigationClient couldn't complete HTTPS requests
​https://bugs.webkit.org/show_bug.cgi?id=189771

Reviewed by Tim Horton.

  • UIProcess/API/APINavigationClient.h:

(API::NavigationClient::didReceiveAuthenticationChallenge):
Perform default behavior if there's an authentication challenge but we're using the default navigation client.
I wish we had infrastructure to test this but WebKitTestRunner uses WKPageSetNavigationClient
and we don't have the ability to do networking from API tests. This is a growing problem I intend to solve.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236229 r236232  
     12018-09-19  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION(236154) C API clients not using WKPageSetPageNavigationClient couldn't complete HTTPS requests
     4        https://bugs.webkit.org/show_bug.cgi?id=189771
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/API/APINavigationClient.h:
     9        (API::NavigationClient::didReceiveAuthenticationChallenge):
     10        Perform default behavior if there's an authentication challenge but we're using the default navigation client.
     11        I wish we had infrastructure to test this but WebKitTestRunner uses WKPageSetNavigationClient
     12        and we don't have the ability to do networking from API tests.  This is a growing problem I intend to solve.
     13
    1142018-09-19  Woodrow Wang  <woodrow_wang@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/API/APINavigationClient.h

    r235616 r236232  
    2828#include "APIData.h"
    2929#include "APIString.h"
     30#include "AuthenticationChallengeProxy.h"
     31#include "AuthenticationDecisionListener.h"
    3032#include "PluginModuleInfo.h"
    3133#include "ProcessTerminationReason.h"
    … …  
    8688    virtual void renderingProgressDidChange(WebKit::WebPageProxy&, WebCore::LayoutMilestones) { }
    8789
    88     virtual bool canAuthenticateAgainstProtectionSpace(WebKit::WebPageProxy&, WebKit::WebProtectionSpace*) { return false; }
    89     virtual void didReceiveAuthenticationChallenge(WebKit::WebPageProxy&, WebKit::AuthenticationChallengeProxy&) { }
     90    virtual void didReceiveAuthenticationChallenge(WebKit::WebPageProxy&, WebKit::AuthenticationChallengeProxy& challenge) { challenge.listener().performDefaultHandling(); }
    9091
    9192    // FIXME: These function should not be part of this client.
Note: See TracChangeset for help on using the changeset viewer.