Open Bug 1991235 Opened 2 months ago Updated 1 month ago

about:compat content is too smooshed together on Android tablets (and Android phones with "Desktop site" enabled)

Categories

(Web Compatibility :: Interventions, defect, P2)

Tracking

(firefox-esr115 unaffected, firefox-esr140 unaffected, firefox143 wontfix, firefox144 wontfix, firefox145 wontfix, firefox146 fix-optional)

Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox143 --- wontfix
firefox144 --- wontfix
firefox145 --- wontfix
firefox146 --- fix-optional

People

(Reporter: dholbert, Assigned: twisniewski)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

STR:

  1. Load about:compat in Firefox for Android (ideally a tablet, but can be a phone too)
  2. Activate "Desktop site" in the 3-dot-menu, if it's not already activated.
  3. Pick one of the listed domain names in the middle of the page, and then see if you can easily find the correct "Disable" button to tap, to turn its intervention on/off.

ACTUAL RESULTS:
It's really hard to match the button to the website - the content is too smooshed together, without any visible dividers, and so you can't easily tell which site goes with which "Disable" button. See attached screenshot.

EXPECTED RESULTS:
Better separation (and maybe dividing lines) so that you can follow a particular row from the site over to its "Disable" button, and so that you don't inadvertently fat-finger the wrong "Disable" button once you've identified the one that you want to press.

No longer blocks: 1488845
Depends on: 1488845

When was it redesigned?

This is what it used to like

Why is it different with request desktop site on/off?

How it appears with request desktop site off

(In reply to csnybot from comment #2)

When was it redesigned?

Looks like the most recent redesign was in bug 1953314.

This is what it used to like

Indeed - on an Android phone with "Request Desktop Site", I see a similar "good" layout in 2025-01-25.

I tried bisecting and unfortunately there's a roughly 6-week range where about:compat doesn't load in one way or another (in mozregression-launched sessions at least), so I can't test this bug in there. e.g. 2025-02-05 gives me "Invalid address", while later builds like 2025-03-01 up until 2025-03-18 are able to load an empty version of about:compat (with no listings). 2025-03-19 is the first build after that broken region to actually load some listings here, and it's got the "bad" rendering shown in my screenshots.

So: I suspect this was a regression from the style changes in Bug 1953314, though it's hard to be sure.

(In reply to csnybot from comment #4)

Why is it different with request desktop site on/off?

Under the hood, it looks like the reason is that bug 1953314 added some logic to make the styles depend on whether the User Agent string does or does-not include the strings "Mobile" or "Tablet":
https://searchfox.org/firefox-main/rev/4258ca077fefa5202714932d293396d2e84b58da/browser/extensions/webcompat/about-compat/aboutCompat.js#48-50

const ua = navigator.userAgent;
if (ua.includes("Tablet") || ua.includes("Mobile")) {
  document.documentElement.classList.add("mobile");

And if you tick "Request desktop site", that changes the UA string that we expose so that we use a desktop-flavored UA string, so we don't end up triggering that^ logic (i.e. we don't get "mobile" in the documentElement's class list).

Regressions: 1953314
Keywords: regression
Regressed by: 1953314
No longer regressions: 1953314

twisniewski, could you take a look? See the end of comment 7 in particular for why this seems to be super-squished-by-default on tablets now (and also squished on phones if the user happens to choose "Request desktop site").

Flags: needinfo?(twisniewski)

Ah, yes, pardon my delay in responding here; you diagnosed this just as I was about to chime in. This stuff is annoyingly tricky. I'll see what I can do ASAP.

Flags: needinfo?(twisniewski)

That was quite the response :)

I appreciate the information

I hope my screenshots helped

Also, what happened to user agent overrides?

Did they get removed?

Set release status flags based on info from the regressing bug 1953314

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

For more information, please visit BugBot documentation.

Flags: needinfo?(dschubert)
Assignee: nobody → twisniewski
Flags: needinfo?(dschubert)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(dschubert)

Set release status flags based on info from the regressing bug 1953314

Fine, Bot, you win this time. Placeholder'ing P2/S3 for now - this is something we should fix, but given about:compat isn't super exposed to users (we don't really promote it), it's not a P1.

Severity: -- → S2
Flags: needinfo?(dschubert)
Priority: -- → P2
Severity: S2 → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: