Skip to content

Bug 1240057 - Only reload the pre-redirect URL if we've changed UAs#1462

Merged
thebnich merged 1 commit intomozilla-mobile:masterfrom
thebnich:refresh-origin
Jan 21, 2016
Merged

Bug 1240057 - Only reload the pre-redirect URL if we've changed UAs#1462
thebnich merged 1 commit intomozilla-mobile:masterfrom
thebnich:refresh-origin

Conversation

@thebnich
Copy link
Copy Markdown
Contributor

Right now, we're using loadRequest instead of reload every time we refresh the page after a redirect. This logic is here so that enabling/disabling Request Desktop Site tries the original URL instead of the redirected URL, but that's the only time we need to do it. This adds a check to follow this path only if the UA has changed.

I also changed ReloadIgnoringLocalAndRemoteCacheData to ReloadIgnoringLocalCacheData because the docs for ReloadIgnoringLocalAndRemoteCacheData say, "This constant is unimplemented and shouldn’t be used" (thanks, Apple).

thebnich added a commit that referenced this pull request Jan 21, 2016
Bug 1240057 - Only reload the pre-redirect URL if we've changed UAs
@thebnich thebnich merged commit 2477f82 into mozilla-mobile:master Jan 21, 2016
@thebnich thebnich deleted the refresh-origin branch January 21, 2016 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant