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   

Description Ali Juma 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.
Comment 1 Radar WebKit Bug Importer 2022-10-25 13:19:19 PDT
<rdar://problem/101558433>