Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke specialized callback behaviour for OnErrorEventHandler. #8430

Merged
merged 2 commits into from Nov 12, 2015

Conversation

@jdm
Copy link
Member

jdm commented Nov 9, 2015

Review on Reviewable

@highfive
Copy link

highfive commented Nov 9, 2015

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@jdm jdm force-pushed the jdm:errorhandler branch 2 times, most recently from b23f657 to fbaafef Nov 9, 2015
@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 9, 2015

Reviewed 7 of 8 files at r1.
Review status: 7 of 12 files reviewed at latest revision, 2 unresolved discussions.


components/script/dom/eventtarget.rs, line 41 [r1] (raw file):
Any reason to keep these typedefs?


components/script/dom/eventtarget.rs, line 124 [r1] (raw file):
Can you get me some spec links?


Comments from the review on Reviewable.io

@Ms2ger Ms2ger self-assigned this Nov 9, 2015
@jdm jdm force-pushed the jdm:errorhandler branch from fbaafef to a806baf Nov 9, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Nov 9, 2015

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

@jdm jdm force-pushed the jdm:errorhandler branch from a806baf to 328c15d Nov 9, 2015
@jdm jdm force-pushed the jdm:errorhandler branch from 328c15d to 0db6a9d Nov 9, 2015
@jdm
Copy link
Member Author

jdm commented Nov 9, 2015

Your very simple requests caused me to add a couple extra assertions to the new test, and that ended up sending me down a rabbit hole of discovery about the various ways that the test was not testing what it thought it was, and additionally how the code for uncompiled event handlers was subtly incorrect in the forward-to-window case!

@jdm jdm removed the S-needs-rebase label Nov 9, 2015
@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 10, 2015

You're welcome :)

@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 12, 2015

Se we're still eagerly compiling? File an issue on that.


Reviewed 8 of 8 files at r2.
Review status: all files reviewed at latest revision, 5 unresolved discussions.


components/script/dom/eventtarget.rs, line 150 [r2] (raw file):
File an issue for this too.


components/script/dom/eventtarget.rs, line 266 [r2] (raw file):
How about just putting the &'static [*const c_char] in the local bindings, and calling as_ptr()/len() below?


components/script/dom/htmlbodyelement.rs, line 156 [r2] (raw file):
This seems fishy. Do we really not have a better way to solve this?


tests/wpt/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html, line 25 [r2] (raw file):
Put this all in parent.t1.step(function() { ... }); ditto below.


Comments from the review on Reviewable.io

@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 12, 2015

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


Review status: all files reviewed at latest revision, 5 unresolved discussions.


Comments from the review on Reviewable.io

@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 12, 2015

-S-awaiting-review +S-needs-squash


Reviewed 1 of 1 files at r3.
Review status: 12 of 13 files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@jdm jdm force-pushed the jdm:errorhandler branch from cd0997e to 16103fa Nov 12, 2015
@jdm
Copy link
Member Author

jdm commented Nov 12, 2015

@bors-servo: r=Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

📌 Commit 16103fa has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

Testing commit 16103fa with merge 1bc36f9...

bors-servo added a commit that referenced this pull request Nov 12, 2015
Invoke specialized callback behaviour for OnErrorEventHandler.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8430)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

💔 Test failed - linux-rel

@jdm
Copy link
Member Author

jdm commented Nov 12, 2015

@bors-servo: retry

@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

Testing commit 16103fa with merge 2212cd8...

bors-servo added a commit that referenced this pull request Nov 12, 2015
Invoke specialized callback behaviour for OnErrorEventHandler.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8430)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

💔 Test failed - linux-dev

@eefriedman
Copy link
Contributor

eefriedman commented Nov 12, 2015

/home/servo/buildbot/slave/linux-dev/build/components/script/dom/eventtarget.rs:14:5: 14:55 error: unresolved import `dom::bindings::global::global_object_for_reflector`. There is no `global_object_for_reflector` in `dom::bindings::global` [E0432]
/home/servo/buildbot/slave/linux-dev/build/components/script/dom/eventtarget.rs:14 use dom::bindings::global::global_object_for_reflector;
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/servo/buildbot/slave/linux-dev/build/components/script/dom/eventtarget.rs:14:5: 14:55 help: run `rustc --explain E0432` to see a detailed explanation
@jdm jdm force-pushed the jdm:errorhandler branch from 16103fa to c4c0809 Nov 12, 2015
@jdm
Copy link
Member Author

jdm commented Nov 12, 2015

@bors-servo r=Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

📌 Commit c4c0809 has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

Testing commit c4c0809 with merge fafc280...

bors-servo added a commit that referenced this pull request Nov 12, 2015
Invoke specialized callback behaviour for OnErrorEventHandler.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8430)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 12, 2015

@bors-servo bors-servo merged commit c4c0809 into servo:master Nov 12, 2015
2 of 3 checks passed
2 of 3 checks passed
code-review/reviewable Review in progress: 6 of 12 files reviewed, all discussions resolved
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.