Closed Bug 1952788 Opened 5 months ago Closed 17 days ago

m.youtube.com - Redirects to homepage when going back after accessing a video from search results

Categories

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

Firefox 138
ARM
Android
defect

Tracking

()

RESOLVED FIXED
143 Branch
Webcompat Score 6
Webcompat Priority P2
Tracking Status
firefox136 --- wontfix
firefox137 --- wontfix
firefox138 --- wontfix
firefox143 --- fixed

People

(Reporter: ctanase, Assigned: avandolder)

References

()

Details

(Keywords: webcompat:blocked-resources, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline])

User Story

platform:android
impact:annoyance
configuration:general
affects:all
branch:release
diagnosis-team:dom
user-impact-score:300

Attachments

(2 files)

Environment:
Operating system: Android 14
Firefox version: Firefox Mobile 136.0/138

Steps to reproduce:

  1. Go to https://m.youtube.com/
  2. Dismiss the cookie banner.
  3. Search for something.
  4. Access a video.
  5. Tap on the back button.

Expected Behavior:
Returns to search results page.

Actual Behavior:
Returns to homepage.

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/149622

Version: unspecified → Firefox 138
Attached video FF vs Chrome.mp4

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][webcompat:sightline]
Webcompat Score: --- → 1

This might be related to the history API? But that'd be concerning, so I hope this is just a YouTube-introduced issue.

Severity: -- → S4
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: 1 → 6
Priority: -- → P2

Does the issue go away if you disable browser.navigation.requireUserInteraction in about:config?

There's a patch for a recent regression on YouTube bug 1946547, which may be related or shares the same root cause.

(In reply to Hsin-Yi Tsai (she/her) [:hsinyi] from comment #4)

Does the issue go away if you disable browser.navigation.requireUserInteraction in about:config?

I confirmed if I disabled browser.navigation.requireUserInteraction, the issue went away.

There's a patch for a recent regression on YouTube bug 1946547, which may be related or shares the same root cause.

Adam, does this share the same root cause as bug 1946547?

Flags: needinfo?(avandolder)

No, I don't believe this is related to bug 1946547 - the issue here appears to be that the search results history entry isn't being marked as having been user-interacted, even though it should be. At this point, I'm not clear on why that is happening, however.

Flags: needinfo?(avandolder)
Assignee: nobody → avandolder
Status: NEW → ASSIGNED

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:avandolder, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(avandolder)
Flags: needinfo?(afarre)
Flags: needinfo?(afarre)

It's a platform bug IIUC.

See Also: → 1977464
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1d2def4b3da1 https://hg.mozilla.org/integration/autoland/rev/d4d34bd37994 Fix Document::NotifyUserGestureActivation not properly setting user-interaction state. r=farre,dom-core
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/03cabb9da133 https://hg.mozilla.org/integration/autoland/rev/d8cb13769869 Revert "Bug 1952788 - Fix Document::NotifyUserGestureActivation not properly setting user-interaction state. r=farre,dom-core" for causing bc failures on browser_storageAccessPrivilegeAPI.js

Backed out for causing bc failures on browser_storageAccessPrivilegeAPI.js

Backout link

Push with failures

Failure log

Flags: needinfo?(avandolder)
Flags: needinfo?(avandolder)
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1cda380e0211 https://hg.mozilla.org/integration/autoland/rev/65ff7d806d1c Fix Document::NotifyUserGestureActivation not properly setting user-interaction state. r=farre,dom-core
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Flags: needinfo?(avandolder)
Component: Site Reports → DOM: Navigation
Product: Web Compatibility → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: