Bug 246707

Summary: didReceiveServerRedirectForProvisionalNavigation is not called for upgradeKnownHostsToHTTPS upgrades
Product: WebKit Reporter: Ali Juma <ajuma>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: achristensen, beidson, cdumez, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ali Juma
Reported 2022-10-18 13:18:14 PDT
When a navigation is upgraded to https as a result of upgradeKnownHostsToHTTPS being enabled, the embedder does not get any navigation callback for this implicit redirect. While these upgrades are not actually server redirects, the existing didReceiveServerRedirectForProvisionalNavigation seems like the most straightforward way to notify an embedder, without having to introduce new public API in WKNavigationDelegate. Without any callback, embedders only see an unexplained URL change, and it seems fragile to assume this is a redirect of an existing navigation.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-10-25 13:19:19 PDT
Note You need to log in before you can comment on or make changes to this bug.