From 14954c38fe682a61583ac904b8e3b6e450d5f646 Mon Sep 17 00:00:00 2001 From: StephenHeaps <5314553+StephenHeaps@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:32:23 -0400 Subject: [PATCH] [iOS]: Downlift comment to reset stored http request in didCommit (#25302) Add comment to reset stored https request in didCommit. --- .../BrowserViewController/BVC+WKNavigationDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+WKNavigationDelegate.swift b/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+WKNavigationDelegate.swift index 01cf3734b185..972ef3a88c57 100644 --- a/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+WKNavigationDelegate.swift +++ b/ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+WKNavigationDelegate.swift @@ -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