servo/components/script/dom/bindings
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
..
codegen Make expectionCode of Promise have newline character automatically 2018-10-18 01:38:27 +08:00
callback.rs Format script component 2018-09-19 17:40:47 -04:00
cell.rs Format script component 2018-09-19 17:40:47 -04:00
constant.rs Format script component 2018-09-19 17:40:47 -04:00
conversions.rs Format script component 2018-09-19 17:40:47 -04:00
error.rs script: Optionally store backtraces when throwing DOM exceptions. 2018-10-01 16:04:56 +02:00
guard.rs Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00
htmlconstructor.rs Remove the HTMLTable{Header,Data}CellElement interfaces 2018-10-02 19:23:02 +02:00
inheritance.rs Format script component 2018-09-19 17:40:47 -04:00
interface.rs Format script component 2018-09-19 17:40:47 -04:00
iterable.rs Format script component 2018-09-19 17:40:47 -04:00
mod.rs Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject> 2018-01-22 17:41:25 +01:00
mozmap.rs Format script component 2018-09-19 17:40:47 -04:00
namespace.rs Format script component 2018-09-19 17:40:47 -04:00
num.rs Format script component 2018-09-19 17:40:47 -04:00
proxyhandler.rs Format script component 2018-09-19 17:40:47 -04:00
refcounted.rs Drop TrustedPromise before dropping JSRuntime 2018-10-21 21:30:19 +08:00
reflector.rs Format script component 2018-09-19 17:40:47 -04:00
root.rs Format script component 2018-09-19 17:40:47 -04:00
settings_stack.rs Format script component 2018-09-19 17:40:47 -04:00
str.rs Format script component 2018-09-19 17:40:47 -04:00
structuredclone.rs Format script component 2018-09-19 17:40:47 -04:00
trace.rs Handle Player errors 2018-10-08 16:12:04 +02:00
utils.rs Format script component 2018-09-19 17:40:47 -04:00
weakref.rs Format script component 2018-09-19 17:40:47 -04:00
xmlname.rs Format script component 2018-09-19 17:40:47 -04:00