Closed Bug 1688301 Opened 4 years ago Closed 4 years ago

Separator space between last pinned tab and first non-pinned tab may not be shown with hidden tabs

Categories

(Firefox :: Theme, defect, P1)

defect
Points:
1

Tracking

()

VERIFIED FIXED
88 Branch
Tracking Status
firefox88 --- verified

People

(Reporter: jastekken, Assigned: jaws)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-tabs-bar])

Attachments

(2 files)

STR:

  1. Pin a tab
  2. Have an extension that can hide tabs such as Simple Tab Groups
  3. Open at least two other normal tabs and separate them to two groups

Expected result:
The separator space exists between the pinned tab and the first visible normal tab in regardless of which group is selected

Actual result:
The space only exists when one of the groups is selected.

In the screenshot the upper part shows a on orange group and no space between pinned and normal tabs. The lower part shows a separator space between those tabs as intended.

The space is added by basically this CSS: .tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned]){ margin-inline-start: 12px } But extensions can hide tabs so the tab that matches that selector may be hidden and thus no space is created.

Extensions cannot hide pinned tabs so maybe add the margin to the last pinned tab instead?

Whiteboard: [proton-tabs-bar]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → jaws
Status: NEW → ASSIGNED

As per guidance from Vicky, for tracking, we're marking all the bugs that people are working on as P1.

Priority: -- → P1
Points: --- → 1
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d86cb442181e Use a special attribute to insert the space between the pinned tabs and unpinned tabs to account for possible hidden tabs. r=mconley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Verified as fixed on Firefox Nightly 88.0a1 (2021-03-16) on Windows 10 x64, Windows 7 x64, macOS X 10.15 and on Ubuntu 20.04.

Status: RESOLVED → VERIFIED
Regressions: 1698868
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: