Closed Bug 1570071 Opened 5 years ago Closed 5 years ago

YouTube doesn't switch back from desktop site

Categories

(GeckoView :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox68 wontfix, firefox69 wontfix, firefox70 affected)

RESOLVED INVALID
Tracking Status
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- affected

People

(Reporter: cpeterson, Unassigned)

References

Details

Steps to reproduce

  1. Load youtube.com
  2. Switch Desktop site on.
  3. Switch Desktop site off.

Expected behavior

The mobile site is displayed.

Actual behavior

The desktop site still displayed. Other websites behave normally.

This is happening because YouTube is actually changing the URL to https://www.youtube.com?app=desktop, so when we go to disable our desktop user agent and refresh we're still loading that desktop page.

This bug was originally filed in the Fenix issue tracker:
https://github.com/mozilla-mobile/fenix/issues/3903

Requesting the desktop site works correctly in Chrome, Fennec, and Focus+GV. In these browsers, YouTube switches back and forth between https://m.youtube.com and https://www.youtube.com. When Fenix or R-B request the desktop site, YouTube redirects to https://www.youtube.com?app=desktop.

Fennec, Focus+GV, and Fenix should all have the same User-Agent string, so why does YouTube behave differently?

Randall says this is an app bug. He fixed a similar bug in FxR. Fenix will be able to fix this bug using the new LOAD_FLAGS_REPLACE_HISTORY flag added in bug 1571088 (GV 70). Since no GV work is needed to fix this bug, I will describe the fix in the Fenix issue tracker and close this bug as invalid (not a GV bug).

Status: NEW → RESOLVED
Closed: 5 years ago
Depends on: 1571088
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.