[Windows 10+] 1px at bottom cut off in non-maximized windows when coloured title bars and window borders are enabled
Categories
(Core :: Widget: Win32, defect)
Tracking
()
People
(Reporter: rechdshraipfelehr, Assigned: emilio)
References
(Regression, )
Details
(Keywords: regression)
Attachments
(4 files)
16.70 KB,
image/png
|
Details | |
52.33 KB,
image/png
|
Details | |
20.29 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
pascalc
:
approval-mozilla-esr91+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
- Open a website with a 1px border, like this one:
<style>
body {
margin: 0;
height: 100%;
border: 1px solid red;
box-sizing: border-box;
}
</style>
- Make the window smaller so it's not maximized anymore (I don't know how this is called)
I'm using Firefox 81.0.2 on Windows 10 1909.
Actual results:
The border at the bottom is not visible. See attached screenshot.
Expected results:
The border at the bottom should be visible.
Comment 1•4 years ago
|
||
I can reproduce the issue on Nightly83.0a1 Windows10 if browser.tabs.drawInTitlebar = true.
The problem appears since Firefox72.
Comment 2•4 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=038ebfdd141acdc7603d2378a832a572bb267686&tochange=9644ee96a51a03a8f4e50e9777fb7278f246383c
Updated•4 years ago
|
Comment 3•3 years ago
|
||
Brendan, any idea what is going on here?
(moving out of widget because I think this is either a frontend or layout issue)
Comment 4•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 5•3 years ago
|
||
Bad bugbug, no botsnack for you.
Comment 6•3 years ago
|
||
[Tracking Requested - why for this release]: due to regression of bug 1492582, bottom 1px of content is cut off.
Comment 7•3 years ago
|
||
(In reply to Alice0775 White from comment #6)
[Tracking Requested - why for this release]: due to regression of bug 1492582, bottom 1px of content is cut off.
Can you clarify how to reproduce this? I can't seem to reproduce (Windows 10 21H1, 19043.1288). I've tried with different display scaling (100%, 200%, 150%) and the red bottom border is always visible. I restore the window by doubleclicking an empty bit of tabstrip. Tried with Nightly 95 and beta 94, same result for both.
Comment 8•3 years ago
|
||
mm, There are no special steps.
My environment,
Windows10 Home 19043.1288
Windows Settings, 140% in text scale, 100% in DPI scale.
Str:
- Start Firefox w/ new profile
- Open data:text/html,<style>body {margin: 0;height: 100%;border: 1px solid red;box-sizing: border-box;}</style>
Actual:
Red bottom border is not visible.
Comment 9•3 years ago
|
||
Bizarre. I don't see this, even with exactly the same scaling settings.
Emilio, do you have ideas on how to gather more data here / figure out what's happening?
Comment 10•3 years ago
|
||
On vmware, guest: Windows 10 Pro for Workstations 19043.1288, 100% in text scale, 100% in DPI scale.
I can also reproduce the issue.
Assignee | ||
Comment 11•3 years ago
|
||
Can't repro locally either... It seems likely to be a windows-specific off-by-one, probably similar to bug 1609129?
Comment 12•3 years ago
|
||
Maybe bugbug was right after all...
Comment 13•3 years ago
|
||
Okay, I found the trigger that causes the problem in the Windows10 Settings.
Start > Settings > Personalization >
Colors > Turn on "Title bars and window borders"
:Gijs, can you reproduce this when the above Windows10 Settings?
Updated•3 years ago
|
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Thanks. Yes, with that option enabled I can reproduce the issue. I expect it's related to the fact that we put a border-top
on the <html>
DOM node, coloured with the accent colour, as instructed by that system pref. What I don't quite follow is why that causes this bug - everything else is using flexbox so should "just" resize accordingly, not end up slightly off-screen. Emilio, with now-solid STR, do you have any idea? I suspect some kind of rounding-related layout issue but I don't really know how to go looking for it.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 15•3 years ago
|
||
This works correctly. On the root it seems we hit this codepath:
And end up with an slightly-bigger-than-needed box. I haven't dug into what
changing this may entail, but given the root frame is special anyways (because
it affects window constraints etc) it's probably safer to do this.
Updated•3 years ago
|
Assignee | ||
Comment 16•3 years ago
|
||
It's not a rounding issue (if I set the border-width to 100px then we push stuff 100px to the bottom).
Comment 17•3 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/220f3305e900 Move Windows accent border to #navigator-toolbox. r=Gijs
Comment 18•3 years ago
|
||
bugherder |
Comment 19•2 years ago
|
||
Seems like a pretty trivial patch - did you want to nominate this for Beta/ESR approval?
Assignee | ||
Comment 20•2 years ago
|
||
Comment on attachment 9251214 [details]
Bug 1671252 - Move Windows accent border to #navigator-toolbox. r=Gijs
Beta/Release Uplift Approval Request
- User impact if declined: comment 0
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 13
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We're using the same border on win7/8.
- String changes made/needed: none
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Trivial ui fix.
- User impact if declined: see above
- Fix Landed on Version: 96
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): see above.
- String or UUID changes made by this patch: none
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 21•2 years ago
|
||
Comment on attachment 9251214 [details]
Bug 1671252 - Move Windows accent border to #navigator-toolbox. r=Gijs
Approved for our last 95 beta, thanks.
Comment 22•2 years ago
|
||
bugherder uplift |
Comment 23•2 years ago
|
||
Verified as fixed on Windows 10 x64 on Firefox Nightly 96.0a1.
Comment 24•2 years ago
|
||
Reverting accidental change to fx95 status flag to ensure this gets verified on beta too once builds are available.
Updated•2 years ago
|
Comment 25•2 years ago
|
||
bugherder uplift |
Comment 26•2 years ago
|
||
Verified as fixed on Firefox Beta 95.b12 and on Firefox 91.4.0esr on Windows 10 x64.
Description
•