Skip to content

Make WebIDL callbacks permanently rooted - #14994

Merged
bors-servo merged 1 commit into
servo:masterfrom
jdm:callback_rooting
Jan 16, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
jdm:callback_rooting

Conversation

@jdm

@jdm jdm commented Jan 12, 2017 •

Copy link
Copy Markdown
Member

This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/bindings/codegen/CodegenRust.py, components/script/dom/bindings/callback.rs, components/script/dom/eventtarget.rs, components/script/script_runtime.rs
  • @KiChjang: components/script/dom/bindings/codegen/CodegenRust.py, components/script/dom/bindings/callback.rs, components/script/dom/eventtarget.rs, components/script/script_runtime.rs

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 12, 2017
@jdm

jdm commented Jan 12, 2017

Copy link
Copy Markdown
Member Author

I'm going to run some try tests and think about ways of writing a specific test for callback GC behaviour.

@jdm

jdm commented Jan 12, 2017

Copy link
Copy Markdown
Member Author

@bors-servo: try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit e97ed87 with merge 7dc3a6b...

bors-servo pushed a commit that referenced this pull request Jan 12, 2017
Make WebIDL callbacks permanently rooted

This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14447
- [ ] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14994)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt2

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Jan 13, 2017
@jdm
jdm force-pushed the callback_rooting branch from e97ed87 to 3f35c3e Compare January 13, 2017 15:00
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Jan 13, 2017
@jdm

jdm commented Jan 13, 2017

Copy link
Copy Markdown
Member Author

@bors-servo: try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 3f35c3e with merge ad2beb6...

bors-servo pushed a commit that referenced this pull request Jan 13, 2017
Make WebIDL callbacks permanently rooted

This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14447
- [ ] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14994)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

@Manishearth

Copy link
Copy Markdown
Member

Looks okay to me, but can we get an r? @fitzgen or @Ms2ger as well?

@highfive highfive assigned fitzgen and unassigned Manishearth Jan 14, 2017
@Ms2ger

Ms2ger commented Jan 16, 2017

Copy link
Copy Markdown
Contributor

No objections

@jdm jdm added 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 Jan 16, 2017
@Manishearth

Copy link
Copy Markdown
Member

@bors-servo try- r=Manishearth,Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 3f35c3e has been approved by Manishearth,Ms2ger

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 16, 2017
@highfive highfive assigned Manishearth and unassigned fitzgen Jan 16, 2017
@cbrewster

Copy link
Copy Markdown
Contributor

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3f35c3e with merge e891277...

bors-servo pushed a commit that referenced this pull request Jan 16, 2017
Make WebIDL callbacks permanently rooted

This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14447
- [ ] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14994)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit 3f35c3e into servo:master Jan 16, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 16, 2017
@Ms2ger
Ms2ger deleted the callback_rooting branch January 17, 2017 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-tests New tests have been requested by a reviewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebIDL callbacks should root themselves

7 participants