Closed Bug 1917730 Opened 1 year ago Closed 1 year ago

Firefox thinks some large phones are tablets and is requesting desktop sites

Categories

(GeckoView :: General, defect)

All
Android
defect

Tracking

(firefox130 unaffected, firefox131 unaffected, firefox132 disabled)

RESOLVED INVALID
Tracking Status
firefox130 --- unaffected
firefox131 --- unaffected
firefox132 --- disabled

People

(Reporter: cpeterson, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid] [group4])

GeckoView's HardwareUtils checks for "large" and "small" tablets. If large phones are detected as "small tablets", maybe we should only default to the desktop UA string on large tablets.

https://searchfox.org/mozilla-central/rev/0386e3e47504286ee176ab373a0562262e7c98b4/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareUtils.java#28-35

Some phones that are showing desktop sites:

Severity: -- → S2

If you can surface something in about:support ?

Regressed by: 1790516

:calu, since you are the author of the regressor, bug 1790516, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(calu)
Keywords: regression
Flags: needinfo?(calu)

My Pixel 8 also displayed desktop sites after a fresh install of Nightly. I "fixed" it by synchronizing it with my old phone.

Thanks Thomas for the device info!
Do you have any system display settings such as font or display size set? You can check that by connecting your device and in a command line, running adb shell wm density.

Flags: needinfo?(thomasdickescheid)

Tried both of my devices, both running on:

132.0a1 (Build #2016043623), hg-ebf0e33ba93e+
GV: 132.0a1-20240910090327
AS: 132.20240907050348

Reproduced: Google Pixel 8 Pro

Physical density: 360
Override density: 306

Can NOT Reproduce: Xiaomi Poco X3 Pro

Physical density: 440
Override density: 396

User with a Pixel 9P XL reporting desktop sites served similarly here. https://www.reddit.com/r/firefox/comments/1fdnihk/firefox_nightly_on_android_pulling_up_desktop/

(In reply to Cathy Lu [:calu] from comment #4)

Thanks Thomas for the device info!
Do you have any system display settings such as font or display size set? You can check that by connecting your device and in a command line, running adb shell wm density.

Could we surface all the kind of relevant infos in about:support to make it easier for diagnosis? When I first got the issue on my Xperia 1 V, my first check was this and nothing was surfaced so I assumed fastmail regressed rather than us

Flags: needinfo?(calu)

That's a good idea, I would recommend filing a separate bug for adding that information to about:support.

Flags: needinfo?(calu)

(In reply to Cathy Lu [:calu] from comment #4)

Thanks Thomas for the device info!
Do you have any system display settings such as font or display size set? You can check that by connecting your device and in a command line, running adb shell wm density.

Sony Xperia 1 V reports:

$ adb shell wm density
Physical density: 420
Override density: 356

Android member reported desktop mode on Pixel 9 Pro Fold as well: "I am seeing that google searches use the large screen version while folded, which makes the text too small to read. in some cases, the sidebar of the search is even empty which looks problematic. "

No longer blocks: 1790516
Whiteboard: [fxdroid] [group4]

We're closing this as new changes have landed. Please open if you see other issues.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(thomasdickescheid)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.