Closed
Bug 1415070
Opened 7 years ago
Closed 7 years ago
The window buttons are hidden on Windows 7
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [wr-reserve])
Attachments
(1 file)
We're not cutting out the window buttons shape with WebRender. This means that you can't see the buttons or might accidentally close your window on Windows 7.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
This patch is completely untested.
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Updated•7 years ago
|
Priority: -- → P1
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Updated•7 years ago
|
Assignee: nobody → mstange
Status: NEW → ASSIGNED
Whiteboard: [wr-mvp] → [wr-reserve]
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
It builds on try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4c857fa275f0&selectedJob=143403947 I've tested it on a Windows 7 machine in the office and it works.
Assignee | ||
Updated•7 years ago
|
Attachment #8925805 -
Flags: review?(bugmail)
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8925805 [details] Bug 1415070 - Cut out the window button shape on Windows 7. https://reviewboard.mozilla.org/r/196986/#review203472 ::: widget/windows/nsWindow.cpp:4097 (Diff revision 3) > + if (mWindowButtonsRect) { > + wr::LayoutRect rect = wr::ToLayoutRect(*mWindowButtonsRect); > + nsTArray<wr::ComplexClipRegion> roundedClip; > + roundedClip.AppendElement(wr::ToComplexClipRegion( > + RoundedRect(ThebesRect(mWindowButtonsRect->ToUnknownRect()), > + RectCornerRadii(0, 0, 3, 3)))); Is the bottom-radius here supposed to correspond to the clearRegion stuff below where you set mWindowButtonsRect? That clearRegion doesn't seem to be a symmetrical thing, it looks like the bottom-left corner has more clipped out than the bottom-right.
Attachment #8925805 -
Flags: review?(bugmail) → review+
Assignee | ||
Comment 7•7 years ago
|
||
Hmm, you're right. That code clears out a shape that looks like this: ############### ############### ############### _############## __############_ And that seems to be because the rest of the curve extends into the right edge of the window frame, which is not part of the our rendering area. I'm going to extend the window buttons rect by 1px on the right side in order to match what's actually happening.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/a4632a2f8aee Cut out the window button shape on Windows 7. r=kats
Comment 11•7 years ago
|
||
Backed out for Windows static bustage: https://hg.mozilla.org/integration/autoland/rev/98c482aa0b42ebc35841b524fc54645492db8b6a Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=a4632a2f8aee8abed3c9f08f0a344724a7ac9376&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=143443318&repo=autoland
Flags: needinfo?(mstange)
Assignee | ||
Comment 12•7 years ago
|
||
Filed bug 1416011 about the failure. Once that lands, this can land again.
Depends on: 1416011
Flags: needinfo?(mstange)
Comment 13•7 years ago
|
||
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/e9a687531a09 Cut out the window button shape on Windows 7. r=kats
Comment 14•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e9a687531a09
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•