servo/components/script
bors-servo e580250d5d
Auto merge of #21988 - CYBAI:drop-promises, r=jdm
Clear refcounted promise before dropping JSRuntime

Not sure if this is the right solution?

I also tried to `impl Drop for LiveDOMReferences` but it's still executed after dropping JSRuntime.
So, maybe we should clear it before dropping the JSRuntime?

cc @jdm @asajeffrey

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21331 .
- [x] There are tests for these changes; the status of `fetch/cross-origin-resource-policy/fetch-in-iframe.html` will be `OK`

<!-- 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/21988)
<!-- Reviewable:end -->
2018-10-29 08:31:12 -04:00
..
docs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
dom Auto merge of #21988 - CYBAI:drop-promises, r=jdm 2018-10-29 08:31:12 -04:00
task_source Make first argument of DOMManipulationTaskSource as a Box<ScriptChan + 2018-10-18 19:13:23 +08:00
body.rs Format script component 2018-09-19 17:40:47 -04:00
build.rs Add a workaround for a rustc ICE 2018-10-22 19:15:25 +02:00
Cargo.toml Implement unhandledrejection event 2018-10-18 19:13:22 +08:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt build(cmake): detect python binary for specified version 2018-03-13 09:25:06 -07:00
devtools.rs Format script component 2018-09-19 17:40:47 -04:00
document_loader.rs Format script component 2018-09-19 17:40:47 -04:00
fetch.rs Format script component 2018-09-19 17:40:47 -04:00
layout_image.rs Format script component 2018-09-19 17:40:47 -04:00
lib.rs Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
mem.rs Format script component 2018-09-19 17:40:47 -04:00
microtask.rs Implement unhandledrejection event 2018-10-18 19:13:22 +08:00
network_listener.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
script_runtime.rs Auto merge of #21988 - CYBAI:drop-promises, r=jdm 2018-10-29 08:31:12 -04:00
script_thread.rs Make first argument of DOMManipulationTaskSource as a Box<ScriptChan + 2018-10-18 19:13:23 +08:00
serviceworker_manager.rs Format script component 2018-09-19 17:40:47 -04:00
serviceworkerjob.rs Format script component 2018-09-19 17:40:47 -04:00
stylesheet_loader.rs Format script component 2018-09-19 17:40:47 -04:00
task.rs Format script component 2018-09-19 17:40:47 -04:00
task_queue.rs Format script component 2018-09-19 17:40:47 -04:00
test.rs Remove unused code for parsing a sizes attribute. 2018-07-01 10:53:42 +02:00
textinput.rs Correctly determine text selection direction 2018-10-17 22:39:37 +02:00
timers.rs Format script component 2018-09-19 17:40:47 -04:00
unpremultiplytable.rs Format script component 2018-09-19 17:40:47 -04:00
webdriver_handlers.rs Format script component 2018-09-19 17:40:47 -04:00