Shifting of toolbar in macOS fullscreen fails to convert device pixel to CSS px
Categories
(Core :: Widget: Cocoa, defect, P5)
Tracking
()
People
(Reporter: wangweixvan, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
- Open browser in macOS fullscreen mode so the menubar is hidden.
- Move mouse to the top to reveal the menubar.
- Observe that the browser toolbar shifts down, and correctly sticks with the menubar.
- Change
layout.css.devPixelsPerPx
pref to a value other than device DPI. - Repeat steps 1-4.
Actual results:
The browser toolbar shifts for a wrong amount.
The shift amount is wrongly proportional to the devPixelsPerPx
pref.
Expected results:
The browser toolbar should stick with the menubar.
The shift amount should be independent to the devPixelsPerPx
pref.
Reporter | ||
Comment 1•1 year ago
|
||
The code at nsGlobalWindowOuter::MacFullscreenMenubarOverlapChanged passes a DesktopCoord
value to the JavaScript handler shiftMacToolbarDown. I guess there misses a conversion from DesktopCoord
to CSSCoord
.
Comment 2•1 year ago
|
||
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.
Updated•1 year ago
|
Description
•