Closed Bug 1800967 Opened 1 year ago Closed 1 year ago

Wrong (or missing) style on overflowed extension widgets pinned in the toolbar

Categories

(WebExtensions :: General, defect, P1)

defect

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: willdurand, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

STR

  1. Install an extension like uBlock
  2. Pin it to the toolbar
  3. Resize window to overflow the uBlock button in the unified extensions panel
  4. Unpin uBlock in the panel
  5. Increase the size (width) of the window

Expected

We should not see the extension widget in the toolbar, the extension should stay in the unified extensions panel.

Actual

See screenshot, when we resize the window, we see an extension in the toolbar and the style is off.

Re-reading the STR above, I am not sure this is just a pure CSS issue to be honest..

Looks like the cui-areatype isn't being properly set to toolbar after the item underflows. Investigating.

It turns out that this is related to bug 1798377, in that the internal collection of overflowed items isn't being properly updated when browser action widgets are being moved out of the overflowable toolbar while overflowed.

Assignee: nobody → mconley

We have some internal bookkeeping within OverflowableToolbar to remember the state of things that
have overflowed, like how wide the window needs to be before they can be moved back, etc. When an
item is removed from an overflowable toolbar while overflowed, we update that internal bookkeeping
so that OverflowableToolbar doesn't accidentally try to move those items back into the toolbar
when the window becomes wide enough again.

We've added a new overflow list for extension buttons, but we weren't updating our internal accounting
when items had been overflowed into that list. This patch fixes that.

Severity: -- → S2
Priority: -- → P1
Attachment #9304180 - Attachment description: Bug 1800967 - Update internal OverflowableToolbar state when unpinning an extension button from the toolbar when overflowed. r?sclements!,willdurand! → Bug 1800967 - Update internal OverflowableToolbar state when unpinning an extension button from the toolbar when overflowed. r?Gijs!,willdurand!
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9b51c28937ff
Update internal OverflowableToolbar state when unpinning an extension button from the toolbar when overflowed. r=willdurand,Gijs
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: