URL, main frame, and chat frame mismatch when using browser history back button
- Have the https://gitter.im/gitterHQ/sandbox chat open and https://gitter.im/gitlabhq/gitlabhq in the sidebar of Gitter
- Open a new tab and go to https://gitter.im/gitterHQ/sandbox
- In the sidebar of Gitter, click gitlabhq/gitlabhq
- In the same tab, go to another page, e.g. https://www.bbc.co.uk/
- Click 'Back'
gitlabhqroom content, the
gitlabhqin the HTML title of the page
gitlabhqin the URL
sandboxin the HTML title
❌– wrong room
❌– wrong room
Affected browsers include:
- Otter Browser
Firefox 56.0.2 (64-bit) with a new, clean profile:
Gitter is Current (not Next).
Here is a YouTube video of this bug in action, https://www.youtube.com/watch?v=tMEvOwiI9pU
Chat Frame not matching Room URL (#1410) · Issues · GitLab.org / gitter / webapp · GitLab (closed, date of closure unknown)
Comment 17 (2017-11-07) under Mozilla bug 1245331 - Investigate how changing history state in iframe affects tab history
It seems when switching between chatrooms on gitter, the iframe's
document.URLkeeps the same. …
… what Firefox tries to restore to the iframe on history navigation, so it ends up showing a wrong place. From what I found currently Firefox behaves as expected. …
… bitten by this. This can be particularly nasty when one thinks they are typing into a private room, but the message is delivered to the public room of the inner frame.