Going back from a Reddit image preview skips 1 page with Navigation API enabled
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox146 | --- | disabled |
| firefox147 | + | verified |
| firefox148 | + | verified |
People
(Reporter: Fanolian+BMO, Assigned: farre)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: nightly-community, regression, reproducible)
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0
Build ID: 20251210095635
Steps to reproduce
- Enable Navigation API on Nightly.
- Go to any page to create a dummy tab history. E.g. https://www.firefox.com/en-US/.
- In the same tab, go to any Reddit page with an image that can be clicked to preview. E.g. https://www.reddit.com/r/aww/hot/ (P.S. not old.reddit.com version)
- Left-click an image to pop up a preview lightbox.
- With the preview still opened, go back 1 page.
- [Optional] Go forward 1 page.
Actual result
The tab goes back to https://www.firefox.com/en-US/, not https://www.reddit.com/r/aww/hot/.
Navigating forward at step 6 brings me back to https://www.reddit.com/r/aww/hot/.
Expected result
The tab should go back to https://www.reddit.com/r/aww/hot/ at step 5.
Additional notes
Clicking the cross button on the top right corner of the lightbox brings me back to https://www.reddit.com/r/aww/hot/ as expected.
If there is no previous histories on the tab, i.e. open a new tab -> go to reddit to click on an image -> click back, the tab goes back to https://www.reddit.com/r/aww/hot/ as expected.
Workaround
Set dom.navigation.webidl.enabled to false.
Regression
Last good Nightly: 2025-10-31
First bad Nightly: 2025-11-01
pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=90470f1361431a99abb4526828c12b7adc2296cb&tochange=3befa2ffc228fd4d071c8b696872a760954392fc
Bisecting autoland builds:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=90470f1361431a99abb4526828c12b7adc2296cb&tochange=86a3463c7d95316b2905a2d45caa3a14d843a5a5
This is regressed by bug 1979288.
If there is no previous histories on the tab, i.e. open a new tab -> go to reddit to click on an image -> click back, the tab goes back to https://www.reddit.com/r/aww/hot/ as expected.
Please disregard this part. The bug still exhibits with the steps above. I forgot to turn Navigation API back on.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 2•3 months ago
|
||
Hi Fanolian, is this still reproducing for you with current Nightly builds? We've landed some fixes that were supposed to address Reddit navigation issues.
Comment 3•3 months ago
|
||
Not this one though. We have a patch, :farre will post it tomorrow.
Updated•3 months ago
|
| Assignee | ||
Comment 4•3 months ago
|
||
Updated•3 months ago
|
Comment 7•3 months ago
|
||
| bugherder | ||
Comment 9•3 months ago
|
||
Please nominate this Beta uplift when you get a chance.
| Assignee | ||
Comment 10•3 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D276815
Updated•3 months ago
|
Comment 11•3 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Reddit #lightbox (image preview) is broken
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: * Go to reddit.com/aww/hot
- Click an image to get the preview
- Press back (in UI)
- Verify that we return to reddit.com/aww/hot
- Risk associated with taking this patch: low
- Explanation of risk level: Small and contained change
- String changes made/needed: None
- Is Android affected?: yes
| Assignee | ||
Comment 12•3 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #9)
Please nominate this Beta uplift when you get a chance.
Done, thanks for the poke. Wanted it to simmer at least a full day on central.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 13•3 months ago
|
||
| uplift | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 14•3 months ago
•
|
||
I reproduced this issue on Win 11 using an affected Nightly build (2025-12-11) following the STR from comment 0.
The issue is verified as fixed on latest Beta 147.0b7 (build downloaded from treeherder) and Nightly 148.0a1 under Win 11, macOS 26.1 and Ubuntu 24.
Updated•3 months ago
|
Description
•