Skip to content

Don't try to unwrap the result of requestAnimationFrame callback - #6880

Merged
bors-servo merged 1 commit into
servo:masterfrom
dzbarsky:rAF
Aug 26, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
dzbarsky:rAF

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 31, 2015
@Ms2ger

Ms2ger commented Aug 3, 2015

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-needs-code-changes


Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful.


components/script/dom/window.rs, line 504 [r1] (raw file):
While you're here, this needs an issue.


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 2 [r1] (raw file):
Add a title


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 9 [r1] (raw file):
I'd like to at least test throwing two exceptions like this; that could trigger SM assertions if we get it wrong.


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 14 [r1] (raw file):
There's no such function.


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 3, 2015
@dzbarsky

dzbarsky commented Aug 3, 2015

Copy link
Copy Markdown
Contributor Author

"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?

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 3, 2015
@Ms2ger

Ms2ger commented Aug 4, 2015

Copy link
Copy Markdown
Contributor

Can you add a test that window.onerror is invoked per http://lists.w3.org/Archives/Public/public-web-perf/2015Aug/0000.html? Not sure if it'll pass in Servo, but it'd be useful at some point.


Reviewed 4 of 4 files at r1.
Review status: 0 of 3 files reviewed at latest revision, 4 unresolved discussions, all commit checks successful.


components/script/dom/window.rs, line 504 [r1] (raw file):
While you're here, this needs an issue.


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 2 [r1] (raw file):
Add a title


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 9 [r1] (raw file):
I'd like to at least test throwing two exceptions like this; that could trigger SM assertions if we get it wrong.


tests/wpt/mozilla/tests/mozilla/window_requestAnimationFrame.html, line 14 [r1] (raw file):
There's no such function.


Comments from the review on Reviewable.io

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 4, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 9, 2015
@dzbarsky

dzbarsky commented Aug 9, 2015

Copy link
Copy Markdown
Contributor Author

The test now crashes due to #7115, but we should land this to fix the original issue.

@Ms2ger

Ms2ger commented Aug 13, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit c715c6a has been approved by Ms2ger

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 13, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit c715c6a with merge 17c7db0...

bors-servo pushed a commit that referenced this pull request Aug 13, 2015
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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 13, 2015
@Ms2ger

Ms2ger commented Aug 13, 2015

Copy link
Copy Markdown
Contributor
/_mozilla/mozilla/window_requestAnimationFrame.html
---------------------------------------------------
NOTRUN Test throwing an error inside requestAnimationFrame callback
TIMEOUT expected CRASH [Parent]

@dzbarsky

Copy link
Copy Markdown
Contributor Author

@Ms2ger should we just mark that test as timeout on linux? Not sure what to do here

@Ms2ger

Ms2ger commented Aug 13, 2015

Copy link
Copy Markdown
Contributor

I'd like to know why it times out, and it seems to time out on mac too

@dzbarsky

Copy link
Copy Markdown
Contributor Author

Does it time out? It crashes for me locally.

@dzbarsky

Copy link
Copy Markdown
Contributor Author

Crash may be fixed by #7220

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7294) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 20, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 20, 2015
@dzbarsky
dzbarsky force-pushed the rAF branch 2 times, most recently from 0f96278 to b77698a Compare August 20, 2015 17:24
@dzbarsky

Copy link
Copy Markdown
Contributor Author

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.

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Aug 23, 2015
@jdm

jdm commented Aug 26, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
Makes sense to me.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b77698a has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 26, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b77698a with merge 186c1d1...

bors-servo pushed a commit that referenced this pull request Aug 26, 2015
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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit b77698a into servo:master Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants