Closed
Bug 1366657
Opened 7 years ago
Closed 7 years ago
stylo: NS_ERROR_NOT_AVAILABLE occurs when modifying style for a keyframe rules obtained by cssom
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: hiro, Assigned: xidorn)
References
Details
Attachments
(1 file)
When running test_animations.html, we get NS_ERROR_NOT_AVAILABLE when modifying keyframe style [1] var dyn2_kf1 = dyn2.cssRules[0]; // currently 0% { margin-left: 100px } dyn2_kf1.style.marginLeft = "-100px"; The error comes from nsDOMCSSDeclaration::ModifyDeclaration [2], it seems the ServoKeyframeRule has no mStyleSheet at that time. [1] https://hg.mozilla.org/mozilla-central/file/9851fcb0bf4d/layout/style/test/test_animations.html#l1555 [2] https://hg.mozilla.org/mozilla-central/file/9851fcb0bf4d/layout/style/nsDOMCSSDeclaration.cpp#l334
Assignee | ||
Comment 1•7 years ago
|
||
Oops... I forgot to give them stylesheet and parent rule...
Assignee: nobody → xidorn+moz
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
According to my local test, it would bumps failures on test_animations.html from 3 to 5, and there is no longer any js exception. I guess that indicates it is fixed by this simple patch.
Assignee | ||
Comment 4•7 years ago
|
||
I should have checked those tests... Thanks for filing this.
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8869914 [details] Bug 1366657 - Set stylesheet and parent rules properly for keyframe rules. https://reviewboard.mozilla.org/r/141476/#review144990
Attachment #8869914 -
Flags: review?(cam) → review+
Reporter | ||
Comment 6•7 years ago
|
||
What a quick fix! Thank you Xidorn!
Assignee | ||
Comment 7•7 years ago
|
||
oops, we have trouble now. test_animations_omta.html has an extra failure on e10s with this patch...
Assignee | ||
Comment 8•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5e098a6e6af06107795cf820d75f1797b2cb7ca1
Reporter | ||
Comment 10•7 years ago
|
||
OK, I check the results of test_animations_omta.html locally. It turns out that the results are originally different on e10s and non-e10s without attachment 8869914 [details]. It's due to bug 1361938. On current mozilla-central the failure number are coincidentally the same.
Depends on: 1361938
Flags: needinfo?(hikezoe)
Assignee | ||
Comment 11•7 years ago
|
||
Thanks for the help. I guess I may land this patch with that specific test disabled with a comment referring to bug 1361938 rather than waiting for that to land, because if that bug ends up not fixing all failures, it would probably make landing patches more complicated. Probably marking that test with [*] would be enough.
Reporter | ||
Comment 12•7 years ago
|
||
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #11) > Thanks for the help. I guess I may land this patch with that specific test > disabled with a comment referring to bug 1361938 rather than waiting for > that to land, because if that bug ends up not fixing all failures, it would > probably make landing patches more complicated. Probably marking that test > with [*] would be enough. Sounds reasonable, I forget about the [*]. The mechanism what you did is quite useful. ;-)
Comment hidden (mozreview-request) |
Comment 14•7 years ago
|
||
Pushed by xquan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03691a66df90 Set stylesheet and parent rules properly for keyframe rules. r=heycam
Comment 15•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/03691a66df90
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•