Closed Bug 1977741 Opened 10 months ago Closed 1 month ago

The height of the pinned tabs area should be responsive to the number of pins

Categories

(Firefox :: Sidebar, defect, P2)

Firefox 142
defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox142 --- wontfix
firefox151 --- fixed

People

(Reporter: asafko, Assigned: chimaifeanyi29, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [fidefe-sidebar][outreachy-sidebar-2026])

Attachments

(1 file)

Prerequisites
Vertical tabs ON, latest Nightly build.
STR

  1. Set the pinned tabs area height to maximum on a fairly narrow sidebar width.
  2. Resizing the sidebar up
  3. Resizing the sidebar down.

Expected result
Since I have set max height for the pinned tabs are, we should remember the setting on resizing down. The height of the pinned tabs area should always be maximized for a given sidebar width, ensuring that all pins are visible at all times.

Actual result*
Upon resizing the sidebar down, the pinned tabs area height I set is not remembered. Instead the heigh of the pinned tabs corresponds to the number of rows of pinned tabs displayed at the maximum width of the sidebar I reached in step 2. For instance, if I made the sidebar wide enough to display all my pins in one row, my pinned tabs area in step 3 will be limited to one row.

Screen recording of the issue

We agreed to interpret pulling the splitter down to give the pinned tabs area max height as a reset of the pref with the user-set height. When it is done, we will go back to auto-adjusting the height of the pinned tabs area based on the contents (number of pinned tabs).

Whiteboard: [fidefe-sidebar]
Severity: -- → S4
Priority: -- → P2

Also noting that we should not be overriding the custom user-preferred height when we are adjusting the height to prevent a gap/space between pinned and unpinned tabs.

please assign (outreachy may 26 applicant)

Assignee: nobody → chimaifeanyi29
Status: NEW → ASSIGNED

Hi, Kelly. care to add a label for outreachy :)

Here is a revision like you asked, https://phabricator.services.mozilla.com/D290058

Mentor: kcochrane
Keywords: good-first-bug
Whiteboard: [fidefe-sidebar] → [fidefe-sidebar][outreachy-sidebar-2026]
Flags: needinfo?(sthompson)
Flags: needinfo?(nikkisharpley)
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/813b2b5763eb https://hg.mozilla.org/integration/autoland/rev/be9633c999e6 Revert "Bug 1977741 - Only update pinned tabs height when sidebar width changes r=nsharpley" for causing bc failures at browser_vertical_tabs.js

Backed out for causing bc failures at browser_vertical_tabs.js
Backout link
Push with failures
Failure log(s)
Failure line: TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_vertical_tabs.js | test_toggle_vertical_tabs - Tabstrip now has three tabs - Got 4, expected 3

Flags: needinfo?(chimaifeanyi29)
Flags: needinfo?(chimaifeanyi29)
Flags: needinfo?(kcochrane)

:japandi you'll need to resolve the test failure described in comment 8 above before we can re-land this

Flags: needinfo?(kcochrane) → needinfo?(chimaifeanyi29)

:kcochrane I have already. while you were Out of Work April 1-3

Gotcha, attempting to re-land now

Flags: needinfo?(sthompson)
Flags: needinfo?(nikkisharpley)
Flags: needinfo?(chimaifeanyi29)
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/351c8b320ad1 https://hg.mozilla.org/integration/autoland/rev/df1739736d5a Revert "Bug 1977741 - Only update pinned tabs height when sidebar width changes r=nsharpley" for causing bc failures at browser_vertical_tabs.js
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b817d24ad62e https://hg.mozilla.org/integration/autoland/rev/b75824a06ae9 Revert "Bug 1977741 - Only update pinned tabs height when sidebar width changes r=nsharpley" for causing bc failures @browser_vertical_tabs.js.

Backed out for causing bc failures @browser_vertical_tabs.js.

Status: RESOLVED → REOPENED
Flags: needinfo?(chimaifeanyi29)
Resolution: FIXED → ---
Target Milestone: 151 Branch → ---
Status: REOPENED → RESOLVED
Closed: 1 month ago1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Flags: needinfo?(chimaifeanyi29)
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: