Skip to content

Commit

Permalink
[Release/iOS]: HTTPS strict mode interstitial shown at wrong time (pa…
Browse files Browse the repository at this point in the history
…rtial uplift to 1.69.x) (#25292)

* Fix http-blocked interstitial shown incorrectly.

* Add comment to reset stored https request in didCommit.
  • Loading branch information
StephenHeaps authored Aug 23, 2024
1 parent ab9201a commit 439ac89
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,9 @@ extension BrowserViewController: WKNavigationDelegate {
public func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
guard let tab = tab(for: webView) else { return }

// Reset the stored http request now that load has committed.
tab.upgradedHTTPSRequest = nil

// Set the committed url which will also set tab.url
tab.committedURL = webView.url

Expand Down

0 comments on commit 439ac89

Please sign in to comment.