radiosize.xhtml and checkboxsize.xhtml reftests fail on macOS with non-native theme enabled
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: spohl, Assigned: emilio)
References
Details
(Whiteboard: [mac:nonnativetheme])
Attachments
(1 file)
Emilio, I'm probably just missing something obvious here, but I can't seem to wrap my head around these two test failures here:
I'm sure it has to do with our new minimum size for radio buttons and checkboxes, but I have been unable to tweak the test locally because it simply refuses to show any checkboxes or radio buttons when I run the reftest locally... Rather than kicking off a series of try runs to test potential fixes I thought it might make sense to ask you if you are able to spot an obvious fix here. Thank you!
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
This reftest uses XUL, which cannot be used by regular web content. That's why it's loaded with the chrome://reftest/content/osx-theme/radiosize.xhtml
URL. I'm not sure what the easiest way to run it in a normal browser (outside reftests) is.
Reporter | ||
Comment 2•3 years ago
|
||
Right, what I meant to say is: when I run this as a reftest locally, the data URLs that are logged as snapshots of the page are usually just a blank page, which means that I can't really compare expected vs. actual snapshots to tweak any potential fix...
Comment 3•3 years ago
|
||
Oh, weird, I don't know why that is.
Assignee | ||
Comment 4•3 years ago
|
||
FWIW I'm not too concerned about failing tests in toolkit/themes/osx
. But sure, can poke.
Assignee | ||
Comment 5•3 years ago
|
||
This matches closer what Chrome and Safari do (Safari paints outside of
the box when this happens, but the layout box still respects the
author), see:
data:text/html,<button style="padding: 0; width: 0">
data:text/html,<input type=checkbox style="width: 0">
Etc. For checkboxes, this matches what OSX does, too.
Since we still want checkboxes to be slightly larger than what they'd be
otherwise, we add a hook to tweak it when non-native theme is enabled.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0b1f4b79d4b Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/d0bd198837ee Remove unnecessarily hard-coded checkbox size that we now honor from a test.
Comment 8•3 years ago
|
||
Backed out 2 changesets (Bug 1693688) for causing failures in browser_options-view-01.js CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer?job_id=330552782&repo=autoland&lineNumber=19480
Backout: https://hg.mozilla.org/integration/autoland/rev/7bd409e26c42ad87c90a0e950b0e4b10b03d1d9c
Assignee | ||
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4bbe4ca120c5 Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
Comment 10•3 years ago
|
||
bugherder |
Description
•