Open Bug 1558452 Opened 6 years ago Updated 2 years ago

Richlistbox headers missaligned when scrollbar is shown on windows

Categories

(Firefox :: Settings UI, defect, P3)

69 Branch
defect

Tracking

()

REOPENED
Firefox 69
Tracking Status
firefox69 --- wontfix
firefox72 --- wontfix
firefox73 --- wontfix
firefox74 --- fix-optional

People

(Reporter: zstimi, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(5 files, 2 obsolete files)

Attached image left-instead-right.png

[Affected versions]:
Fx 69.0a1 (20190610214846)

[Affected platforms]:
Windows 10 x64
Ubuntu 18.04 x64
Mac OS X 10.14

[Steps to reproduce]:

  1. Open Firefox.
  2. Go to in about:config to turn on the "Block autoplay" feature, set media.autoplay.default = 1 (block)
    media.autoplay.enabled.user-gestures-needed = true
    preferences.
  3. Access some websites: https://edition.cnn.com/, https://www.arcticmonkeys.com/ in order to add them to a list from "Settings - Autoplay" page list (sitePermissions panel on a page).
  4. In address bar click on site information icon, at the bottom of this pop up at Permission section you will see "Autoplay sound" icon with "Block Audio" status button.
  5. Change the status to "Allow Audio and Video".
  6. Click on settings gear button, then on "Settings..." button from Autoplay.
    At this step https://edition.cnn.com/, https://www.arcticmonkeys.com/ websites added to the list with "Allow Audio and Video" status.

[Expected result]:
The "Allow Audio and Video" status button is right aligned.

[Actual result]:
The "Allow Audio and Video" status button is left aligned instead of right aligned.

[Additional Information]:
Please observe the attached screenshot for more details.

Dale, do you want to triage this?

Component: Site Identity and Permission Panels → Preferences
Flags: needinfo?(dharvey)
No longer blocks: 1557002

Is this a regression?

Why was it removed from the QA tracking bug?

Flags: needinfo?(timea.zsoldos)

I removed from 1557002 bug because this is not related to "Block Autoplay" feature. This is not a regression because the issue has just introduced with the feature "Block Autoplay" last week.

Flags: needinfo?(timea.zsoldos)

(In reply to Timea Zsoldos [:zstimi/tzsoldos], Desktop Release QA from comment #3)

I removed from 1557002 bug because this is not related to "Block Autoplay" feature. This is not a regression because the issue has just introduced with the feature "Block Autoplay" last week.

This seems to say it's both introduced by "block autoplay" and "not related" to the same? That doesn't make much sense to me... Which is it?

Flags: needinfo?(timea.zsoldos)

Sorry for misunderstanding, this issue seems to be introduced with bug: 1543812 (when this feature was intruduced in nightly), finally it seems to be a "Block Autoplay" feature bug.

Depends on: 1557002
Flags: needinfo?(timea.zsoldos)
Assignee: nobody → dharvey
Flags: needinfo?(dharvey)
Status: NEW → ASSIGNED
Priority: -- → P1
Attachment #9073245 - Attachment description: Bug 1558452 - Fix sitePermission coloumn header width. r?johannh → Bug 1558452 - Fix sitePermission column header width. r?johannh
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9c09f4d18f8a Fix sitePermission column header width. r=johannh
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69

This issue has been fixed only when the scroll does not appear in the exception list (see: exception-list-without-scroll.png). In case if appear the scroll bar in the exception list, the issue is still there (see: exception-list-with-scroll.png)

Flags: needinfo?(dharvey)

I think you posted the same screenshot here? neither of those look like they scroll. I added enough exceptions to make this panel scroll but dont see any bugs here

Flags: needinfo?(dharvey) → needinfo?(timea.zsoldos)
Attachment #9073507 - Attachment is obsolete: true
Flags: needinfo?(timea.zsoldos)

Sorry for the inconvenience, here is the right screenshot: exception-list-with-scroll-new.png

Flags: needinfo?(dharvey)
Blocks: 1557002
No longer depends on: 1557002

Ah ok thank you, didnt account for the extra space taken up by windows scrollbars here, lets nudge this a little more

Status: RESOLVED → REOPENED
Flags: needinfo?(dharvey)
Resolution: FIXED → ---
Attached image D36213-Applied.png

I used Developer Tools to remove the min-height on the dialog and on the richlistbox, and the issue seems to persist with the patch applied. I'm not sure what can be done here, since the layout of the header and the list body are independent, now that we removed support for list headers from richlistbox. Maybe worth filing a separate bug.

Attachment #9074550 - Attachment is obsolete: true

Hrm you are right, I tested by updating the headers but didnt check updating all the menuitems, I didnt think the scrollbar width would be taken into account

So yeh this happens with the rest of the richlistbox's (popup windows + install addon exceptions in about:preferences#privacy) however their problems are less visible because their values are plain text boxes without a background, the menulist background makes this very visible

Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1562234, cheers

Updating the title and clarifying the issue + deassigning because this is probably going to need work in the component

When viewing the exceptions panels @ about:preferences#privacy, if there is enough exceptions to cause a scrollbar on windows the contents are misaligned with the headers because the scrollbars width is taken into account laying out the contents (but not the headers), this is most visible in the Autoplay -> Settings list due to the combobox being used

Assignee: dharvey → nobody
Priority: P1 → P3
Summary: The "Allow Audio and Video" status button is left aligned instead of right aligned → Richlistbox headers misasligned when scrollbar is shown on windows

Victor, is this something you could help with, given you've worked on de-XBL-ing <tree> etc.?

Flags: needinfo?(vporof)

My hands are completely full for this and next week, but I'll try to take a look afterwards if there's no progress.

Keeping ni.

Is the idea here to teach <listheader> to adjust itself when scrollbars appear in a neighboring <richlistbox>? If that's the plan, is there any point in having both this bug and bug 1562234?

Summary: Richlistbox headers misasligned when scrollbar is shown on windows → Richlistbox headers missaligned when scrollbar is shown on windows

Is this still an issue? I suspect this might've been fixed by bug 1532863 or a similar one by :bgrins (can't find the bug no. atm).

Flags: needinfo?(vporof)

Yes this is still an issue, reproduced on Fx 71.0b11.

Hi,
I've tested this using the latest Nightly version 74.0a1 (2020-01-13) (64-bit) for Ubuntu 18.04.3 LTS and I’m able to reproduce the issue. Based on this I will mark firefox74 flag as affected. I can reproduce A, B and C from the description.
Best,
Clara

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression

Happy to take a patch but I'm marking the bug fix-optional to remove it from new regression triage.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: