servo/components/script
bors-servo c48ef50b72 Auto merge of #18514 - asajeffrey:layout-dont-panic-if-no-iframe-bc, r=emilio
Remove sources of panic when laying out an iframe without a nested browsing context

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

At the moment, layout panics if it discovers an iframe without a nested browsing context. Under normal circumstances, this is reasonable, but it requires very tight synchronization between script, layout, the constellation and the compositor. In particular, if a layout is in progress when an iframe's browsing context is discarded, this can trigger panic.

This PR fixes this in two ways:

1. Making the pipeline and browsing context ids optional in layout's representation of an iframe.
2. Shutting down layout before discarding a browsing context, rather than after.

This is belt and braces.

---
<!-- 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 #17482 and #18477
- [X] These changes do not require tests because the PR is fixing a panic caused by a race condition

<!-- 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/18514)
<!-- Reviewable:end -->
2017-09-22 09:34:12 -05:00
..
docs Make #[dom_struct] a proc_macro attribute 2017-02-24 01:50:51 +01:00
dom Auto merge of #18514 - asajeffrey:layout-dont-panic-if-no-iframe-bc, r=emilio 2017-09-22 09:34:12 -05:00
task_source Introduce TaskOnce 2017-09-20 10:37:09 +02:00
body.rs Make Promise::reject_error sound 2017-09-22 02:15:22 +02:00
build.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
Cargo.toml Auto merge of #18059 - sendilkumarn:mito, r=nox 2017-09-21 13:20:29 -05:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Added some same-origin-domain checks. 2017-03-14 14:36:03 -05:00
document_loader.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fetch.rs Make Promise::reject_error sound 2017-09-22 02:15:22 +02:00
layout_image.rs Rename Runnable to Task 2017-09-16 15:43:26 +02:00
lib.rs Auto merge of #18579 - mbrubeck:features, r=KiChjang 2017-09-21 15:08:04 -05:00
mem.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
microtask.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
network_listener.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
script_runtime.rs Rename Task to TaskBox 2017-09-20 10:07:29 +02:00
script_thread.rs Remove sources of panic when laying out an iframe without a nested browsing context. 2017-09-22 09:04:18 -05:00
serviceworker_manager.rs remove extra spaces after keywords 2017-07-20 00:45:02 +03:00
serviceworkerjob.rs Rename Promise::is_settled to Promise::is_fulfilled 2017-09-22 14:18:25 +02:00
stylesheet_loader.rs Rename Runnable to Task 2017-09-16 15:43:26 +02:00
task.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
test.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00
textinput.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
timers.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Replace downcast with is 2017-08-02 21:51:17 +02:00