Open Bug 1881907 Opened 2 years ago Updated 8 months ago

"Desktop site" toggle sometimes causes errors by removing "m" and "mobile" subdomains

Categories

(Firefox for Android :: Browser Engine, defect)

All
Android
defect

Tracking

()

Tracking Status
firefox126 --- affected
firefox127 --- affected

People

(Reporter: jackyzy823, Unassigned)

References

Details

(Whiteboard: [qa-triaged])

User Story

When a URL includes the `m.` and `mobile.` domains, the "Desktop site"  toggle removes them, assuming that this will always point them to the desktop version of the same URL.

This is a bad assumption because `m.example.com` may not even have a bare domain equivalent, causing a network error. Also, even if `https://example.com/` does exist, it may a completely different website or section from `https://mobile.example.com/`. 

For example, https://mobile.pcpop.com/ is a page focused on mobile news and reviews, while https://pcpop.com/ is a general tech news website.

Attachments

(1 file)

Steps to reproduce

  1. Visit "https://m.bilibili.com/space/15773384"
  2. Click menu -> "Desktop site" , it shows error page.
  3. (Optional) , in the error page, click on urlbar , edit url to from "https://www.bilibili.com/space/15773384" to "https://m.bilibili.com/space/15773384" , then enter to reload page, the page loaded correctly.

Expected behavior

It redirected to the desktop site.
(Chrome works correctly)

Actual behavior

It shows error page.

Any additional information?

This is caused by https://searchfox.org/mozilla-mobile/rev/2c59f88a76cd1813a39c9e592919a71fd4ff248e/firefox-android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngineSession.kt#521 , firefox presume to strip the subdomain "m." and "mobile".

I don't think browser should do sooooo much for users. Modern sites have ablity to redirect user to the correct domain and page.

The severity field is not set for this bug.
:amejia, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(amejiamarmol)

Tagging Jeff for further prioritization.

Flags: needinfo?(amejiamarmol) → needinfo?(jboek)
Severity: -- → S3
Flags: needinfo?(jboek)

QA, how do Chrome on Android and Safari on iOS handle "Request desktop mode" for https://m.bilibili.com/space/15773384 or other websites that have a m. or mobile. domain name? Do Chrome or Safari remove the URL's m. or mobile.? Or does the website automatically redirect them from m. or mobile. to www. for "Request desktop mode"?

Flags: qe-verify+
Attached image 1881907.png

Hello Chris,

On the https://m.bilibili.com/space/15773384 link, when in Desktop mode, both Chrome and Safari display the https://space.bilibili.com/15773384/ link automatically.
On both Chrome, and Safari, the page reloads in Desktop mode, without issues (please see the attached screenshots), but on Fenix and Focus it displays an error page.

Flags: qe-verify+
Whiteboard: [qa-triaged]
Duplicate of this bug: 1952834
User Story: (updated)
Summary: Failed to redirect to correct desktop site in some cases → "Desktop site" toggle sometimes causes errors by removing "m" and "mobile" subdomains
User Story: (updated)
See Also: → 1807149
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: