Open Bug 1184681 Opened 10 years ago Updated 5 years ago

Back button incorrect history on POST redirect

Categories

(Core :: DOM: Navigation, defect, P3)

42 Branch
defect

Tracking

()

People

(Reporter: raysatiro, Unassigned)

References

Details

(Keywords: regression, reproducible)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20150716030208 Steps to reproduce: Tested 31ESR, Aurora, Nightly. Go to 'libcurl basic-auth post example' https://gist.github.com/p120ph37/71fb340f7a0d38fa5443 Scroll down to the author's comment reply where it says "The source for the CGI that is generating this response to the POST can be found here: " Click that link and you are redirected to 'Simple CGI that displays information about the request.' Click the back button. Actual results: Firefox will appear to go back but the page 'libcurl basic-auth post example' has been overwritten in the history with the URL from the redirected page so it doesn't actually go back. This may have something to do with the way the user is taken to the page. When the user clicks the link github will send out a POST to a redirect resource which then issues the redirect, in other words POST https://gist.github.com/site/redirect HTTP/1.1 data: the link the user clicked HTTP/1.1 200 OK <html> <meta http-equiv="refresh" content="0;url=https://gist.github.com/p120ph37/3bf6c500e0f00ab635da"> </html> Expected results: Firefox should go back to the previous page.
Can go back original page, but need to click back button twice: http://hg.mozilla.org/integration/mozilla-inbound/rev/e7334bfb16b1 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120605083018 Original page is overwritten: http://hg.mozilla.org/integration/mozilla-inbound/rev/1b34d689a6ba Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120605095820 Regression window: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=e7334bfb16b1&tochange=1b34d689a6ba Regressed by: 1b34d689a6ba Justin Lebar — Bug 757376. r=bz
Status: UNCONFIRMED → NEW
Component: Untriaged → Document Navigation
Ever confirmed: true
Product: Firefox → Core
Olli, can you take a look?
Flags: needinfo?(bugs)
The repro case no longer works, GitHub no longer redirects that way.
Flags: needinfo?(bugs)
Severity: normal → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.