Closed
Bug 1401256
Opened 7 years ago
Closed 7 years ago
stylo: thread '<unnamed>' panicked at 'should check whether we're a non-inherited property'
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | + | fixed |
firefox58 | --- | fixed |
People
(Reporter: jkratzer, Assigned: jryans)
References
(Blocks 2 open bugs)
Details
(Keywords: assertion, regression, testcase)
Attachments
(4 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
text/plain
|
Details | |
(deleted),
text/x-review-board-request
|
heycam
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details |
(deleted),
text/plain
|
Sylvestre
:
approval-mozilla-beta+
|
Details |
Testcase found while fuzzing mozilla-central rev 20170919-e4261f5b96eb.
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jryans
Assignee | ||
Comment 2•7 years ago
|
||
This assertion was added recently in bug 1367635.
It adds a `for_non_inherited_property` property to the computed value context, and asserts that it is correct for `ExtremumLength`s like `-moz-max-content` from the test case.
For the regular styling path, this appears to be handled correctly, but for animations there are code paths that don't set the correct state in the context.
Should have a patch soon.
Blocks: 1367635
Keywords: regression
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8910432 [details]
Bug 1401256 - Crashtest for animating lengths.
https://reviewboard.mozilla.org/r/181864/#review187316
::: layout/style/crashtests/1401256.html:4
(Diff revision 1)
> +<script>
> + let o1 = document.createElement('p');
> + document.documentElement.appendChild(o1);
> + o1.animate({'':[''],'minWidth':['-moz-max-content']});
Curious why the '':[''] is needed.
Attachment #8910432 -
Flags: review?(cam) → review+
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8910433 [details]
Bug 1401256 - Update inherited prop state for animation.
https://reviewboard.mozilla.org/r/181866/#review187318
Thanks!
Attachment #8910433 -
Flags: review?(cam) → review+
Assignee | ||
Comment 8•7 years ago
|
||
Assignee | ||
Comment 9•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8910432 [details]
Bug 1401256 - Crashtest for animating lengths.
https://reviewboard.mozilla.org/r/181864/#review187316
> Curious why the '':[''] is needed.
Ah, I missed this when borrowing from the fuzzer output. It doesn't affect the result, so I'll remove it.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8910433 -
Attachment is obsolete: true
Comment 11•7 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #9)
> Comment on attachment 8910432 [details]
> Bug 1401256 - Crashtest for animating lengths.
>
> https://reviewboard.mozilla.org/r/181864/#review187316
>
> > Curious why the '':[''] is needed.
>
> Ah, I missed this when borrowing from the fuzzer output. It doesn't affect
> the result, so I'll remove it.
That's good to know. I was also wondering how interact with the length property and was going to investigate it later.
Comment 12•7 years ago
|
||
Requesting tracking on all outstanding p2 stylo bugs.
tracking-firefox57:
--- → ?
Assignee | ||
Updated•7 years ago
|
status-firefox57:
--- → affected
status-firefox58:
--- → affected
Comment 13•7 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
hg error in cmd: hg rebase -s 1422deda0bcf -d 443fe7c5dd42: rebasing 421951:1422deda0bcf "Bug 1401256 - Crashtest for animating lengths. r=heycam" (tip)
merging layout/style/crashtests/crashtests.list
warning: conflicts while merging layout/style/crashtests/crashtests.list! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Comment hidden (mozreview-request) |
Comment 15•7 years ago
|
||
Pushed by jryans@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/34d60bb9e16b
Crashtest for animating lengths. r=heycam
Assignee | ||
Comment 16•7 years ago
|
||
Servo portion previously landed as:
https://hg.mozilla.org/integration/autoland/rev/443fe7c5dd42bb6207fb778f58f94354d19fac28
Comment 17•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 18•7 years ago
|
||
We don't want to crash, tracking.
Can we have an uplift request?
Thanks
Flags: needinfo?(jryans)
Assignee | ||
Comment 19•7 years ago
|
||
Approval Request Comment
[Feature/Bug causing the regression]: Stylo bug 1367635
[User impact if declined]: If declined, animations that process certain properties might not be styled correctly. Debug builds would crash the content process.
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: Unifies some flag setting in the style system's animations path. The same thing was already being done for regular styling.
[String changes made/needed]: None
Flags: needinfo?(jryans)
Attachment #8911291 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 20•7 years ago
|
||
Comment on attachment 8910432 [details]
Bug 1401256 - Crashtest for animating lengths.
Approval Request Comment
See comment 19.
Attachment #8910432 -
Flags: approval-mozilla-beta?
Comment 21•7 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #19)
> Created attachment 8911291 [details]
> Servo portion
>
> Approval Request Comment
> [Feature/Bug causing the regression]: Stylo bug 1367635
> [User impact if declined]: If declined, animations that process certain
> properties might not be styled correctly. Debug builds would crash the
> content process.
This is not right, fwiw. There's no correctness issue, since the for_non_inherited_property bit is only useful for the rule cache, which isn't used for animations.
That being said the fix is trivial enough that uplifting should be ok.
Comment 22•7 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #21)
> That being said the fix is trivial enough that uplifting should be ok.
Yeah. In general I think it's worth uplifting all/most targeted fuzz bug fixes in the first few weeks of the beta cycle, as long as they're not particularly risky.
Comment 23•7 years ago
|
||
Comment on attachment 8911291 [details]
Servo portion
Fix a crash, let's take it.
Should be in 57b3.
Attachment #8911291 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•7 years ago
|
Attachment #8910432 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 24•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/61dd4d2e2a78
https://hg.mozilla.org/releases/mozilla-beta/rev/46a47d4a1f5c
Flags: in-testsuite+
Updated•7 years ago
|
status-firefox55:
--- → unaffected
status-firefox56:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 25•7 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #19)
> [Is this code covered by automated tests?]: Yes
> [Has the fix been verified in Nightly?]: Yes
> [Needs manual test from QE? If yes, steps to reproduce]: No
Setting qe-verify- based on J. Ryan's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•