New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use original URI when switching UA on a page that was redirected #1542
Conversation
To test:
URL should be Note for what will not work:
The domain will remain This patch only works when switching UA on a domain that was redirected. Once you click a link, FxR no longer knows it has been redirected. To address always dropping the |
@bluemarvin I've seen this when switch back and forth from VR to Desktop:
Result: You go back to |
That’s what fennec does too and it’s wrong. I’ll see if I can figure out what isn’t working. |
This turning out to be more difficult that I first thought. The problem I am having is that in the twich.tv case specifically, it is a single page site. So we don't actually get |
It was suggested I look at the history delegate to see if it is possible to determine what is causing the location change. |
830fc6c
to
78f96e2
Compare
After trying a lot of different things with GeckoView, until GV can tell us if a visited URI was human initiated or script initiated there isn't a way to track redirects. This is a brute force method that just drops the |
@bluemarvin LGTM just the merge conflicts and maybe we could also add support for |
if (overrideUri != null) { | ||
mCurrentSession.loadUri(overrideUri, GeckoSession.LOAD_FLAGS_BYPASS_CACHE); | ||
} else if (state.mUri != null){ | ||
mCurrentSession.loadUri(state.mUri, GeckoSession.LOAD_FLAGS_BYPASS_CACHE);; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: double ;
at the end of this line.
It looks like twitter uses cookies. Even if I drop the |
78f96e2
to
91c3a0a
Compare
Partially fixes #1473