servo/components/script
bors-servo 99c4821485 Auto merge of #14344 - asajeffrey:script-thread-new-layout-use-incomplete-loads, r=jdm
Script thread creating layout thread should use the incomplete loads

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

When a script thread creates a new layout thread, it does so by sending a message to an existing layout thread asking it to spawn. At the moment, we're only looking at the completed loads for that layout thread, so we can get a panic if two loads happen in quick succession. The temporary fix is to look for the layout thread in the incomplete loads too.

---
<!-- 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 #14333.
- [X] These changes do not require tests because it fixes a panic.

<!-- 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/14344)
<!-- Reviewable:end -->
2016-11-24 04:57:50 -08:00
..
docs
dom Remove unused LoadData and LoadOrigin types. 2016-11-24 11:46:28 +01:00
task_source Properly implement TaskSource for NetworkingTaskSource 2016-11-11 14:50:42 -08:00
body.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
build.rs Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00
Cargo.toml Update to selectors 0.15 2016-11-22 14:50:21 +01:00
clipboard_provider.rs
CMakeLists.txt Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Replace script thread root browsing context by a collection of documents. 2016-11-08 10:48:58 -06:00
document_loader.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
fetch.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
layout_wrapper.rs Remove SelectorImpl aliases 2016-11-22 14:50:22 +01:00
lib.rs Initial work on job queues for service workers 2016-11-22 01:29:37 +05:30
mem.rs
network_listener.rs Properly implement TaskSource for NetworkingTaskSource 2016-11-11 14:50:42 -08:00
origin.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
script_runtime.rs Remove GlobalRoot and GlobalRef 2016-10-06 21:36:00 +02:00
script_thread.rs When a script thread looks for a current layout thread, it should look in the incomplete loads. 2016-11-23 08:32:53 -06:00
serviceworker_manager.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
serviceworkerjob.rs Initial work on job queues for service workers 2016-11-22 01:29:37 +05:30
textinput.rs Return KeyReaction::Nothing for a Tab event 2016-11-12 15:49:00 +01:00
timers.rs Use a timer callback when re-establishing a connection 2016-11-11 14:52:20 -08:00
unpremultiplytable.rs
webdriver_handlers.rs Remove redundant url clones 2016-11-18 12:39:22 +08:00