-
Notifications
You must be signed in to change notification settings - Fork 120
Back button is enabled after page load on /firstrun flow #3296
Comments
My thoughts from https://bugzilla.mozilla.org/show_bug.cgi?id=1221489#c5 (In reply to Alex Gibson [:agibson] from comment #4)
Yes, the firstrun flow loads FxA to root - Perhaps a |
closing in favour https://github.com/mozilla/fxa-bugzilla-mirror/issues/94 |
Re-opening in place of mozilla/fxa-bugzilla-mirror#94. |
I'm wondering if this is a manifestation of https://bugzilla.mozilla.org/show_bug.cgi?id=301307. We are already using backbone's replace. In the iframe case, this calls location.replace instead of history.replaceState |
This is a really annoying issue. What fixes the behavior in one version of Firefox breaks the back button in others. The back button behavior is caused by two problems:
The specific back button behavior outlined in this issue (firstrun flow) is fixed if we stop using hashchange events, and instead for pushState, but like everything in web development this is not without repercussions. hashchange
pushState
|
Changing from |
The combination of using hashchange events and a browser bug caused the browser back button to be enabled as soon as the user loaded the firstrun flow. pushState does not suffer from this problem. Use pushState instead of hashchange. This fix has some repercussions on Fx <= 44. Read the table in the referenced bug to find out more. fixes #3296
The combination of using hashchange events and a browser bug caused the browser back button to be enabled as soon as the user loaded the firstrun flow. pushState does not suffer from this problem. Use pushState instead of hashchange. This fix has some repercussions on Fx <= 43. Read the table in the referenced bug to find out more. fixes #3296
Copied from https://bugzilla.mozilla.org/show_bug.cgi?id=1221489
Reproducible with Firefox 43.0b1 build 2 (Build ID: 20151103023037) and 42.0RC build 2 (Build ID: 20151029151421)
Affected platforms: Mac OS X 10.10.4, Windows 7 64-bit and Ubuntu 14.04 32-bit
Steps to reproduce:
Expected result:
Back button disabled.
Actual result:
Back button is enabled on FirstRun page. Clicking on it reloads the page and 'Forward' button is visible for a second.
Additional notes:
The text was updated successfully, but these errors were encountered: