Repository navigation
Don't try to unwrap the result of requestAnimationFrame callback - #6880
Conversation
dzbarsky
commented
Jul 31, 2015
|
-S-awaiting-review +S-needs-code-changes Reviewed 4 of 4 files at r1. components/script/dom/window.rs, line 504 [r1] (raw file): tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 2 [r1] (raw file): tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 9 [r1] (raw file): tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 14 [r1] (raw file): Comments from the review on Reviewable.io |
|
"I'd like to at least test throwing two exceptions like this; that could trigger SM assertions if we get it wrong." - I'm not sure what this means. Are you suggesting calling rAF(function() {throw new Error()}) before throwing the Error? Or testing DOMExceptions? |
|
The test now crashes due to #7115, but we should land this to fix the original issue. |
|
@bors-servo r+ |
|
📌 Commit c715c6a has been approved by |
Don't try to unwrap the result of requestAnimationFrame callback <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6880) <!-- Reviewable:end -->
|
💔 Test failed - linux2 |
|
|
@Ms2ger should we just mark that test as timeout on linux? Not sure what to do here |
|
I'd like to know why it times out, and it seems to time out on mac too |
|
Does it time out? It crashes for me locally. |
|
Crash may be fixed by #7220 |
|
☔ The latest upstream changes (presumably #7294) made this pull request unmergeable. Please resolve the merge conflicts. |
0f96278 to
b77698a
Compare
|
When running the test, Servo reports an error on line 9, which causes the timeout. The issue is that the error is not properly suppressed, but this is better than a crash and we have an issue on file to solve this. |
|
@bors-servo: r+ |
|
📌 Commit b77698a has been approved by |
Don't try to unwrap the result of requestAnimationFrame callback <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6880) <!-- Reviewable:end -->