Skip to content

Fix the "get the parent" loop when dispatching event (fixes #6733) - #9734

Merged
bors-servo merged 2 commits into
servo:masterfrom
nox:finish-event-dispatch
Feb 27, 2016
Merged

bors-servo merged 2 commits into
servo:masterfrom
nox:finish-event-dispatch

Conversation

@nox

@nox nox commented Feb 24, 2016

Copy link
Copy Markdown
Contributor

The DOM specification says:

A document's get the parent algorithm, given an event, returns null
if event's type attribute value is "load" or document does not have
a browsing context, and the document's associated Window object
otherwise.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 24, 2016
@nox nox added A-content/dom Interacting with the DOM from web content and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 24, 2016
@jdm

jdm commented Feb 24, 2016

Copy link
Copy Markdown
Member

This fixes #6733.

@Ms2ger

Ms2ger commented Feb 24, 2016

Copy link
Copy Markdown
Contributor

I want a bunch of tests that this does not affect documents that are not in a browsing context

@nox nox added the S-awaiting-review There is new code that needs to be reviewed. label Feb 24, 2016
@nox
nox force-pushed the finish-event-dispatch branch from b8dcfa9 to 94686fc Compare February 24, 2016 12:04
@nox nox changed the title Fix the "get the parent" loop when dispatching event Fix the "get the parent" loop when dispatching event (fixes #6733) Feb 24, 2016
@Ms2ger

Ms2ger commented Feb 25, 2016

Copy link
Copy Markdown
Contributor

Reviewed 1 of 2 files at r1, 7 of 7 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 34 [r2] (raw file):
I'd move the test() out of the function, to make sure we catch exceptions fromconcat, say.


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 80 [r2] (raw file):
Please also add new Document() / createHTMLDocument(), and test them all with load too.


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. S-needs-tests New tests have been requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 26, 2016
@nox nox added the C-needs-test An automated test is required. label Feb 26, 2016
@nox
nox force-pushed the finish-event-dispatch branch from 94686fc to 274755a Compare February 26, 2016 13:15
@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 Feb 26, 2016
@nox

nox commented Feb 26, 2016

Copy link
Copy Markdown
Contributor Author

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


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 34 [r2] (raw file):
If I do this, I can't build the test name anymore by concatenating it.


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 80 [r2] (raw file):
Done.


Comments from the review on Reviewable.io

@nox nox removed C-needs-test An automated test is required. S-needs-tests New tests have been requested by a reviewer. labels Feb 26, 2016
@Ms2ger

Ms2ger commented Feb 26, 2016

Copy link
Copy Markdown
Contributor

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


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 34 [r2] (raw file):
Feel free to drop the ": Event.dispatchEvent with Event.bubbles set to false." bit


Comments from the review on Reviewable.io

@nox
nox force-pushed the finish-event-dispatch branch from 274755a to 1270c8a Compare February 26, 2016 14:05
@nox

nox commented Feb 26, 2016

Copy link
Copy Markdown
Contributor Author

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


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 34 [r2] (raw file):
Done.


Comments from the review on Reviewable.io

@Ms2ger

Ms2ger commented Feb 26, 2016

Copy link
Copy Markdown
Contributor

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 34 [r3] (raw file):
Also test "load"


tests/wpt/web-platform-tests/dom/events/Event-dispatch-bubbles-false.html, line 71 [r3] (raw file):
Add a var


Comments from the review on Reviewable.io

@nox
nox force-pushed the finish-event-dispatch branch from 1270c8a to 2aad3be Compare February 26, 2016 15:38
@nox

nox commented Feb 26, 2016

Copy link
Copy Markdown
Contributor Author

@Ms2ger

Ms2ger commented Feb 26, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+


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


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 2aad3be has been approved by Ms2ger

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 26, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 583961c has been approved by Ms2ger,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 Feb 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 583961c with merge 54c0eb1...

bors-servo pushed a commit that referenced this pull request Feb 27, 2016
Fix the "get the parent" loop when dispatching event (fixes #6733)

The DOM specification says:

> A document's get the parent algorithm, given an event, returns null
> if event's type attribute value is "load" or document does not have
> a browsing context, and the document's associated Window object
> otherwise.

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@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 Feb 27, 2016
The DOM specification says:

A document's get the parent algorithm, given an event, returns null
if event's type attribute value is "load" or document does not have
a browsing context, and the document's associated Window object
otherwise.
@nox
nox force-pushed the finish-event-dispatch branch from 583961c to e70b520 Compare February 27, 2016 16:41
@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 Feb 27, 2016
@nox

nox commented Feb 27, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo r=Ms2ger,jdm

Forgot one last expectation.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e70b520 has been approved by Ms2ger,jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e70b520 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 Feb 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e70b520 with merge d5ce8f3...

bors-servo pushed a commit that referenced this pull request Feb 27, 2016
Fix the "get the parent" loop when dispatching event (fixes #6733)

The DOM specification says:

> A document's get the parent algorithm, given an event, returns null
> if event's type attribute value is "load" or document does not have
> a browsing context, and the document's associated Window object
> otherwise.

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@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 Feb 27, 2016
@nox

nox commented Feb 27, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo retry #8120

@nox nox added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Feb 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit e70b520 into servo:master Feb 27, 2016
@nox
nox deleted the finish-event-dispatch branch February 27, 2016 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-content/dom Interacting with the DOM from web content 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