servo/components/script
bors-servo 852223b08a
Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm
Refactor promise compartment

<!-- Please describe your changes on the following line: -->
This PR adds a mechanism to verify that certain code is executed inside a ```JSAutoCompartment```, and applies this to the ```Promise::new_in_current_compartment``` constructor.

r? @jdm

---
<!-- 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 #23167

<!-- Either: -->
- [x] These changes do not require tests because they do not change existing functionality.

<!-- 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/23253)
<!-- Reviewable:end -->
2019-04-29 13:59:04 -04:00
..
docs
dom Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm 2019-04-29 13:59:04 -04:00
task_source
body.rs Pass InCompartment by value 2019-04-25 11:37:35 +02:00
build.rs Auto merge of #23211 - jdm:win-cross, r=SimonSapin 2019-04-26 08:55:28 -04:00
Cargo.toml Can collect webidl paths. 2019-04-20 22:39:22 +02:00
clipboard_provider.rs
CMakeLists.txt
compartments.rs Pass InCompartment by value 2019-04-25 11:37:35 +02:00
devtools.rs Make devtools find node by unique id function include shadow trees 2019-04-26 11:42:38 +02:00
document_loader.rs Auto merge of #23183 - krk:fix-23144, r=asajeffrey 2019-04-11 14:33:44 -04:00
fetch.rs Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm 2019-04-29 13:59:04 -04:00
image_listener.rs
layout_image.rs Implementing the builder pattern for RequestInit 2019-04-10 14:01:30 -03:00
lib.rs Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm 2019-04-29 13:59:04 -04:00
mem.rs
microtask.rs
network_listener.rs
script_runtime.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
script_thread.rs Merge Node::shadow_including_inclusive_ancestors into inclusive_ancestors 2019-04-26 11:42:38 +02:00
serviceworker_manager.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
serviceworkerjob.rs
stylesheet_loader.rs Rename shadow_root_from_node to containing_shadow_root 2019-04-26 12:00:26 +02:00
stylesheet_set.rs Move StylesheetSetRef to script 2019-04-26 12:00:26 +02:00
task.rs
task_manager.rs
task_queue.rs in BC event-loop, only run tasks related to fully-active documents 2019-03-06 14:18:18 +08:00
test.rs
textinput.rs
timers.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
unpremultiplytable.rs
vcvars.bat Add Windows x86 build job. 2019-04-26 08:54:24 -04:00
webdriver_handlers.rs Introduce ShadowIncluding enum for tree traversals 2019-04-26 11:31:17 +02:00