Skip to content

Commit

Permalink
Bugfix FXIOS-10789 - Incorrect behavior while no internet connection …
Browse files Browse the repository at this point in the history
…for some specific websites (#23746)

Load a new request without cache if the page has error
  • Loading branch information
PARAIPAN9 authored Dec 16, 2024
1 parent 8ce21d3 commit 48d1b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firefox-ios/Client/TabManagement/Tab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ class Tab: NSObject, ThemeApplicable, FeatureFlaggable, ShareTab {
func reload(bypassCache: Bool = false) {
// If the current page is an error page, and the reload button is tapped, load the original URL
if let url = webView?.url, let internalUrl = InternalURL(url), let page = internalUrl.originalURLFromErrorPage {
webView?.replaceLocation(with: page)
let request = URLRequest(url: page, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData)
webView?.load(request)
return
}

Expand Down

0 comments on commit 48d1b44

Please sign in to comment.