"Desktop site" toggle sometimes causes errors by removing "m" and "mobile" subdomains
Categories
(Firefox for Android :: Browser Engine, defect)
Tracking
()
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)
|
4.03 MB,
image/png
|
Details |
Steps to reproduce
- Visit "https://m.bilibili.com/space/15773384"
- Click menu -> "Desktop site" , it shows error page.
- (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.
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:amejia, could you have a look please?
For more information, please visit BugBot documentation.
Comment 2•2 years ago
|
||
Tagging Jeff for further prioritization.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
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"?
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
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.
Updated•2 years ago
|
Description
•