Closed
Bug 1419355
Opened 8 years ago
Closed 8 years ago
Add a test for non-content-accessible properties.
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla59
| Tracking | Status | |
|---|---|---|
| firefox59 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
.
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 2•8 years ago
|
||
Note that this test written as is also uncovers a bunch of bugs on stylo. I'm working on a fix for those.
| Assignee | ||
Comment 3•8 years ago
|
||
https://github.com/servo/servo/pull/19317 is the servo fix that allows this test to pass.
Assignee: nobody → emilio
Comment 4•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8930459 [details]
Bug 1419355: Add a test for non-content-accessible properties, and make Stylo and Gecko consistent.
https://reviewboard.mozilla.org/r/201614/#review206900
::: layout/style/nsCSSPropList.h:4516
(Diff revision 1)
> CSS_PROP_UIRESET(
> -moz-window-transform,
> _moz_window_transform,
> CSS_PROP_DOMPROP_PREFIXED(WindowTransform),
> CSS_PROPERTY_INTERNAL |
> - CSS_PROPERTY_PARSE_FUNCTION |
> + CSS_PROPERTY_PARSE_VALUE |
This seems to be a mistake?f`-moz-window-transform` is parsed in the same way as `transform`, which uses a parsing function in `nsCSSParser`. Before we actually remove that code, I think we should still keep it working. (It's especially important given that we haven't enabled stylo-chrome yet...)
Attachment #8930459 -
Flags: review?(xidorn+moz) → review+
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 6•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8930459 [details]
Bug 1419355: Add a test for non-content-accessible properties, and make Stylo and Gecko consistent.
https://reviewboard.mozilla.org/r/201614/#review206900
> This seems to be a mistake?f`-moz-window-transform` is parsed in the same way as `transform`, which uses a parsing function in `nsCSSParser`. Before we actually remove that code, I think we should still keep it working. (It's especially important given that we haven't enabled stylo-chrome yet...)
Yup, that was a typo, which was happily caught by the own test I wrote for bug 1418963 :).
Fixed, and devtools DB updated too.
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/39a68df1359c
Add a test for non-content-accessible properties, and make Stylo and Gecko consistent. r=xidorn
Backout by aiakab@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e35aa16d84a6
Backed out changeset 39a68df1359c for failing chrome's toolkit/content/tests/chrome/test_arrowpanel.xul on OS X on a CLOSED TREE
| Assignee | ||
Comment 9•8 years ago
|
||
This was backed out for failing chrome's toolkit/content/tests/chrome/test_arrowpanel.xul on OS X in:
https://hg.mozilla.org/integration/autoland/rev/e35aa16d84a6
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&fromchange=06f11b61118d3f661e7a6e872bc7af9721bf9bd3&filter-searchStr=10.10%20m(c3)&selectedJob=146540420
I have no clue why or how (there was a failing intermittent for it, bug 1351040), so so far I've pushed three try runs, one with the patch as-is:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1804060b521531bb6bd47138265689a92cfd55b5
One with the test removed (in case it is due to rebucketing):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=970acca26e4dee877918608cbe83138a5c424a9a
One with the props hidden, but the test there:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=76721a3754727f96da23681fec961f08460ff173
If (1) and (2) are orange, but not (3), I'll reland. Otherwise I guess I get to investigate the menupopup code, yay... Though given[1], I guess it may even be a legit failure...
[1]: https://searchfox.org/mozilla-central/rev/797c93d81fe446f78babf20894f0729f15f71ee6/toolkit/content/xul.css#452
| Assignee | ||
Comment 10•8 years ago
|
||
So I bet that's it, and that hiding -moz-window-opacity and -moz-window-transform from content pages disables the transition, at least on Gecko (bug 1265611).
Birtles, is there any chance to relax this requirement? It's unfortunate that we need to expose those properties to every webpage because otherwise our popups don't have transitions...
Flags: needinfo?(bbirtles)
Comment 11•8 years ago
|
||
Backed out changeset 39a68df1359c (bug 1419355) for failing chrome's toolkit/content/tests/chrome/test_arrowpanel.xul on OS X on a CLOSED TREE
Link to the logs: https://treeherder.mozilla.org/logviewer.html#?job_id=146561385&repo=autoland&lineNumber=15012
Back out revision https://hg.mozilla.org/integration/autoland/rev/e35aa16d84a68c135064ab478f7c01201885f97e
Failing push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=39a68df1359c42e4a9343b7ca61fe3faf2a47472&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable
Flags: needinfo?(emilio)
Comment 12•8 years ago
|
||
So, it seems we only parse properties in transition-property for those enabled in content at the omment: https://searchfox.org/mozilla-central/rev/797c93d81fe446f78babf20894f0729f15f71ee6/layout/style/nsRuleNode.cpp#5723-5731
Comment 13•8 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #10)
> Birtles, is there any chance to relax this requirement? It's unfortunate
> that we need to expose those properties to every webpage because otherwise
> our popups don't have transitions...
I'm sure it's possible but I don't expect its trivial. Throughout animation/transition code we only deal with properties that are enabled for all content (or at least that was the case when I wrote the comment in [1]) so I imagine it's a bit of work to make all that code correctly distinguish between chrome and content documents. I suppose eventually we'll need to change that.
[1] https://hg.mozilla.org/mozilla-central/rev/fe27ee21b66b
Flags: needinfo?(bbirtles)
Comment 14•8 years ago
|
||
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d119d5f35935
Add a test for non-content-accessible properties. r=xidorn
| Assignee | ||
Comment 15•8 years ago
|
||
I pushed the test with these properties commented out for now. Filed bug 1419695 on the transitions issue.
Flags: needinfo?(emilio)
Comment 16•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•