Fix titlebar button detection in nsBoxFrame::BuildDisplayList.
Categories
(Core :: XUL, defect)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
|
Details | Review |
While looking at the code in bug 1798396, I realized there's another piece of code that doesn't work on non-XUL frames, and that powers features like bug 1718629.
Assignee | ||
Comment 1•2 years ago
|
||
This fixes the snap layouts feature on Windows 11.
Instead of using a content attribute (which is somewhat expensive to
look up) use the default appearance and do this where we deal with other
appearance hacks (before building themed backgrounds).
Consolidate this inside a DealWithWindowsAppearanceHacks function along
with the glass stuff.
Comment 3•2 years ago
|
||
bugherder |
Assignee | ||
Comment 4•2 years ago
|
||
Comment on attachment 9304777 [details]
Bug 1801956 - Move titlebar button handling out of nsBoxFrame. r=tnikkel
Beta/Release Uplift Approval Request
- User impact if declined: Windows 11 snap layout features don't work.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See bug 1718629 for examples
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Relatively simple refactoring to fix 108 regression.
- String changes made/needed: none
- Is Android affected?: No
Assignee | ||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Comment on attachment 9304777 [details]
Bug 1801956 - Move titlebar button handling out of nsBoxFrame. r=tnikkel
Approved for 108.0b8
Comment 6•2 years ago
|
||
bugherder uplift |
Updated•2 years ago
|
Comment 7•2 years ago
|
||
I've reproduced this bug on an affected Nightly build, 109.0a1 (20221122214324), the snap layout feature did not work on Win 11.
I've verified that the snap layout feature works as expected on the latest builds, Beta 108.0b9 and Nightly 109.0a1, running Win 11 x64.
Description
•