Closed Bug 1610594 Opened 5 years ago Closed 5 years ago

In RDM device-picker menu, the overlayed checkbox/browser-logo looks pretty broken on Linux

Categories

(DevTools :: Responsive Design Mode, defect, P2)

defect

Tracking

(firefox-esr68 unaffected, firefox72 unaffected, firefox73+ wontfix, firefox74- wontfix, firefox75 fixed)

RESOLVED FIXED
Firefox 75
Tracking Status
firefox-esr68 --- unaffected
firefox72 --- unaffected
firefox73 + wontfix
firefox74 - wontfix
firefox75 --- fixed

People

(Reporter: dholbert, Assigned: daisuke)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached image screenshot.png

STR:

  1. Visit any page, e.g. this page here
  2. Open responsive design mode (Ctrl+Shift+M on Linux)
  3. Click the device switcher menu (which starts out labeled "Responsive" at top, to the left of center)
  4. Pick any option, e.g. the top one "Galaxy S9"
  5. Click the device switcher menu again.

ACTUAL RESULTS:

  • Nearly all of the options have a Chrome or Safari browser logo shown inside of their checkbox
  • When you pick one of these options, then it shows up with the checkbox and browser logo overlayed, which just looks like a jumble of unintelligible visual artifacts. (You can't really tell anymore what the logo is, or what the checkbox is.)

EXPECTED RESULTS:
No such overlaying. If we want to show the logo, we should ensure it remains visible & don't paint checkbox styling on top of it.

Note: this might be better/worse on different operating system themes, depending on the checkbox styling. It happens to look pretty terrible with the default theme for Ubuntu 19.10, which is what I'm using.

Also, incidentally, it looks like the browser logos are mispositioned/mis-sized (they run off the bottom of the checkbox a bit), but that's not as severe of an issue.

Regression range:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=b02e985f21307a96117f9b1bddbe0c249401ad9b&tochange=b7864d9346d5fc85c4eaf38a973873195e1d56ec
--> regression from bug 1306198.

Also: I verified that current Firefox beta (73.0b7) is affected by this.

[Tracking Requested - why for this release]: Visual regression (broken-looking UI) introduced in the Firefox 73 nightly cycle.

Has Regression Range: --- → yes

daisuke, do you have cycles to look at this?

Per the screenshots on bug 1306198 (e.g. attachment 9113761 [details]), it looks like the intent was for the logos to show up next to the checkboxes, not on top of the checkboxes.

Flags: needinfo?(daisuke)

(And if it matters: I'm using Ubuntu 19.10, and the current Nightly 74.0a1 (2020-01-21) (64-bit) is affected.)

Thank you for reporting, Daniel!
Yeah, I could confirm on Ubuntu 18 as well.
I'll take a look.

Flags: needinfo?(daisuke)

I discussed it with Brian and Makoto.
So, if we need to show the checkbox and the icon on Ubuntu as well, it seems that we should modify the Linux widget as we are using the XUL element for the component.
However, instead, recently, DevTools started to use the menu items that are made by HTML in some places such as MeatballMenu.
https://searchfox.org/mozilla-central/source/devtools/client/framework/components/MeatballMenu.js
https://searchfox.org/mozilla-central/source/devtools/client/shared/components/menu/
So, I started to think to use the HTML component to fix this issue. Let me try the above approach.

Priority: -- → P2

Before now, we used XUL elements as the menu for device selection on RDM.
We introduced the icon on the XUL menuitem in bug 1306198, but the UI on Ubuntu
became weird looking. In order to fix this, we could think to modify Linux
gadget, but we replace to HTML menu components we are using in DevTools with
considering deXUL as well.

Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Summary: In RDM device-picker menu, the overlayed checkbox/browser-logo looks pretty broken → In RDM device-picker menu, the overlayed checkbox/browser-logo looks pretty broken on Linux
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ec353a434f9 Support icon for MenuButton component. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/c3f7182fd57f Use HTML menu component instead of xul menu. r=mtigley,jdescottes https://hg.mozilla.org/integration/autoland/rev/a9a2395b667f Add a test for device selector button and the menu items. r=mtigley

Backed out for failures on browser_device_selector_items.js && /browser_orientationchange_event.js

backout: https://hg.mozilla.org/integration/autoland/rev/b0f071e99da08c2a5b1fb406a422d8b71460e198

push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=a9a2395b667fd8d20da1881d0309c5c598fa3bb0&selectedJob=287679748

failure log:

Flags: needinfo?(daisuke)
See Also: → 1613828
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/393f197ad3fd Support icon for MenuButton component. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/8ebf947a89cc Use HTML menu component instead of xul menu. r=mtigley,jdescottes https://hg.mozilla.org/integration/autoland/rev/62d23c66eccf Add a test for device selector button and the menu items. r=mtigley
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
QA Whiteboard: [qa-75b-p2]
Regressions: 1624361
Regressions: 1620098
Regressions: 1629222
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: