Files
servo/components/script/dom/webidls
bors-servo 989d2fd532 Auto merge of #19644 - Xanewok:root-seq-any, r=jdm
Root sequence<any> params using CustomAutoRooter

<!-- Please describe your changes on the following line: -->

Attempt at https://github.com/servo/servo/issues/16678. At the moment this pulls an external [remove-handle-conv](https://github.com/Xanewok/rust-mozjs/tree/remove-handle-conv) branch for rust-mozjs (removing `FromJSValConvertible` implementation for `HandleValue` and adding one for `*mut JSObject`)

In short, this roots the `sequence<any>` and `sequence<object>` function arguments using `CustomAutoRooter` (introduced in https://github.com/servo/rust-mozjs/pull/382).

As per https://github.com/servo/servo/issues/16678#issuecomment-302224110 the underlying vector contains raw gc thing pointers instead of handles. To do that, this introduces new possible `isMember = "AutoRoot"` value in CodegenRust.py.
The rooted argument is passed to a function wrapped in a `CustomAutoRooterGuard` [RAII root guard](ed5e37a288/src/rust.rs (L586-L588)) (e.g. as `CustomAutoRooterGuard<Vec<JSVal>>`)

I felt quite out of my depth when trying to adapt CodegenRust.py code, so I'd appreciate any help with how can be done better/in a more clean manner.
Also the name `CustomAutoRooterGuard` is quite lengthy, so I'm also open to changing it (`AutoRoot`? `AutoRootGuard`?)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [x] These changes fix #16678  (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/19644)
<!-- Reviewable:end -->
2018-01-05 14:02:53 -06:00
..
2017-07-18 12:22:20 -06:00
2017-06-09 13:57:30 +02:00
2016-10-17 16:08:07 -04:00
2017-07-18 12:22:20 -06:00
2016-10-17 16:08:07 -04:00
2017-05-17 09:01:05 -05:00
2017-01-07 23:17:55 -08:00
2016-11-15 06:58:16 -08:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2016-09-29 08:19:41 -07:00
2016-10-17 16:08:07 -04:00
2016-09-23 10:19:11 -04:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-06-09 13:57:30 +02:00
2016-10-17 16:08:07 -04:00
2017-07-06 19:37:55 +02:00
2016-10-17 16:08:07 -04:00
2016-12-02 23:46:40 +03:00
2017-05-15 18:15:38 -04:00
2017-05-15 18:15:38 -04:00
2017-07-05 22:38:29 +02:00
2017-07-18 12:22:20 -06:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2017-07-18 12:22:20 -06:00
2017-09-06 13:33:30 +02:00
2017-09-06 13:33:30 +02:00
2017-09-06 13:33:30 +02:00
2016-10-17 16:08:07 -04:00
2017-07-18 12:22:20 -06:00
2016-11-04 12:36:23 +01:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2016-10-17 16:08:07 -04:00
2017-07-05 22:38:29 +02:00
2017-07-05 22:38:29 +02:00
2016-10-17 16:08:07 -04:00