Skip to content

Commit

Permalink
[iOS]: Downlift comment to reset stored http request in didCommit (#2…
Browse files Browse the repository at this point in the history
…5302)

Add comment to reset stored https request in didCommit.
  • Loading branch information
StephenHeaps authored Aug 23, 2024
1 parent de2674c commit 14954c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,10 @@ 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 14954c3

Please sign in to comment.