Back/forward buttons should expose only pages with user-interaction
Categories
(Core :: DOM: Navigation, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: baku, Assigned: johannh)
References
(Blocks 5 open bugs)
Details
(Keywords: site-compat)
Attachments
(5 files, 3 obsolete files)
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
It appears that someone made a site for us to test on: http://matthewrayfield.com/articles/animating-urls-with-javascript-and-emojis
Assignee | ||
Comment 10•5 years ago
|
||
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D31601
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
Depends on D27588
Updated•5 years ago
|
Assignee | ||
Comment 16•5 years ago
|
||
This is waiting on bug 1591943 to avoid complicating Fission work. Once that's done, I'll try and drive this over the finish line.
Comment 17•5 years ago
|
||
(In reply to Johann Hofmann [:johannh] - Away until Dec 3rd from comment #16)
This is waiting on bug 1591943 to avoid complicating Fission work. Once that's done, I'll try and drive this over the finish line.
That is done now, FWIW.
Updated•5 years ago
|
Comment 18•5 years ago
|
||
I'm not certain we want to break extensions this way (nor am I certain we dont want to)...browser.history can add/remove history entries. Those will not be marked with the user interaction flag, so navigation on them will be skipped.
We should consider whether to somehow add the flag when an extension calls addUrl[1]
Pinging Philip for another opinion on this.
Comment 19•5 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #18)
I'm not certain we want to break extensions this way (nor am I certain we dont want to)
sorry...I may be wrong about what I said in comment 18. The history api uses placesutils.history, I'm not certain that has anything to do with the history state of a tab. I'm going to do a bit more investigation on how extensions interact with this. If this change does effect extensions (probably in content scripts) I think we still need to make a decision on whether that is what we want
Comment 20•5 years ago
|
||
Also, the above is not meant to block these changes in any way, it's about whether we need to followup with a change for extensions.
Comment 21•5 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #19)
(In reply to Shane Caraveo (:mixedpuppy) from comment #18)
I'm not certain we want to break extensions this way (nor am I certain we dont want to)
sorry...I may be wrong about what I said in comment 18. The history api uses placesutils.history, I'm not certain that has anything to do with the history state of a tab.
It doesn't, the browser history and session history are separate from each other. For example, in private browsing mode we have session history but we don't persist browser history.
I'm going to do a bit more investigation on how extensions interact with this. If this change does effect extensions (probably in content scripts) I think we still need to make a decision on whether that is what we want
I would expect extension content scripts to be able to push entries into the session history using the history.pushState
API in the exact same way that web pages do. It would be interesting to scan existing extensions on AMO to see if we can find a legitimate use case for an extension to push a page that has never received user interaction onto the session history, and the user wanting to go back to that page; I can't imagine off the top of my head what such a use case might look like.
Comment 22•5 years ago
|
||
(In reply to :ehsan akhgari from comment #21)
I would expect extension content scripts to be able to push entries into the session history using the
history.pushState
API in the exact same way that web pages do. It would be interesting to scan existing extensions on AMO to see if we can find a legitimate use case for an extension to push a page that has never received user interaction onto the session history, and the user wanting to go back to that page; I can't imagine off the top of my head what such a use case might look like.
There was a XUL extension I used that put fake history into tabs from links opened via middle-click (open in new tab). It's basically what I wish my browser would would do by default.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 24•4 years ago
|
||
Updated•4 years ago
|
Comment 25•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/08b6902debe8
https://hg.mozilla.org/mozilla-central/rev/e91f0572aa8c
https://hg.mozilla.org/mozilla-central/rev/e08524b0a11c
https://hg.mozilla.org/mozilla-central/rev/88104bd105a8
https://hg.mozilla.org/mozilla-central/rev/891bf9d395fd
Assignee | ||
Comment 26•4 years ago
|
||
Going through the webcompat issues...
https://webcompat.com/issues/39963 (NSFW) is fixed
https://webcompat.com/issues/50326 is fixed
https://webcompat.com/issues/47715 I can't reproduce anymore
https://webcompat.com/issues/41847 (NSFW) seems fixed at first glance, but when navigating back and forth a little the site seems to be able to add another sh entry somehow, but not in Chrome. I'll file a bug to investigate
Comment hidden (obsolete) |
Comment 30•4 years ago
|
||
That patch is in the wrong bug I think. It should be in bug 1657992 right?
Comment hidden (obsolete) |
Comment 33•2 months ago
|
||
This looks fixed to me on the Latest Nightly build 132.0a1 across platforms (Windows 11, macOS 13 and Ubuntu 22.04) using the working links from webcompat.com which are linked to this bug.
Description
•