Closed Bug 1918921 Opened 2 years ago Closed 2 years ago

Right sidebar cannot be resized on MacOS

Categories

(Firefox :: Sidebar, defect)

Firefox 131
defect

Tracking

()

VERIFIED FIXED
132 Branch
Tracking Status
firefox132 --- verified

People

(Reporter: duarte.gmj, Assigned: duarte.gmj)

Details

Attachments

(2 files, 1 external file, 3 obsolete files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

  1. Open the sidebar (favorites, bookmarks, etc) on the right side
  2. Try to resize the sidebar

Actual results:

Neither the splitter, nor the "drag" indicator show up, making it impossible to resize the sidebar

Expected results:

The splitter and "drag" indicator shows up and allows the sidebar to be resized

Additionally, the splitter overlaps on the left side (MacOS only too)

The sidebar overlap on the right side is off by a single pixel,
this change corrects that re-enabling the drag behavior.

This happens because the splitter is fully covered by the sidebar box,
as using z-index:10 would also fix this issue.

Assignee: nobody → duarte.gmj
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Component: Widget: Cocoa → Sidebar
Product: Core → Firefox

This patch does a couple things:

  • For sidebar.revamp, actually makes the splitter take space, rather
    than relying on the sidebar-box to have equivalent padding. This
    provides the 6px of hit testing area regardless of the sidebar
    position, and removes the hacky negative margins.

  • For !sidebar.revamp, applies effectively the fix from D222221. This
    means that there's only 1px of resizable space when the sidebar is at
    the end, which is slightly unfortunate, but this code is hopefully
    going away soon enough, so it's not the worst issue?

  • Prioritizes sidebar.revamp rules.

Co-authored-by: José Duarte <duarte.gmj@gmail.com>

Attachment #9424890 - Attachment is obsolete: true
Attachment #9425118 - Attachment is obsolete: true
Attachment #9425118 - Attachment is obsolete: false
Attachment #9425118 - Attachment is obsolete: true
Attachment #9425118 - Attachment is obsolete: false
Attachment #9425118 - Attachment is obsolete: true
Attachment #9424877 - Attachment is obsolete: true
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b00d46fa10a Paint splitter over sidebar box r=emilio,desktop-theme-reviewers,sidebar-reviewers,sfoster
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

Reproduced the issue with Firefox 132.0a1 (2024-09-13) on macOS 12. The sidebar cannot be resized when placed on the right side and the splitter is not visible.
The issue is verified fixed with Firefox 132.0b5 on Windows 10x64, macOS 12 and Ubuntu 24. The sidebar can be successfully resized and the splitter is visible. This was tested with sidebar.revamp true/ false.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: