mirror of
https://github.com/servo/servo.git
synced 2025-06-30 03:53:37 +01:00
Removed panicking when frame or pipeline lookup fails. Removed the methods `pipeline(id)`, `pipeline_mut(id)`, `frame(id)` and `frame_mut(id)` from constellation, which panicked when the table lookup failed. The panics were causing race conditions, e.g. visiting google.com and resizing the page would cause a panic, most likely due to an iframe being added and removed, with the `DOMLoad` event arriving after the iframe had been removed, causing a panic. This patch fixes #10017 and #8769 (although in non-webrender builds there's now a different panic, see https://github.com/servo/servo/issues/10017#issuecomment-198160200). There are a few `TODO` items in the initial commit, for cases where it's not completely obvious what to do in the case of failure. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10082) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
Cargo.toml | ||
compositor.rs | ||
compositor_layer.rs | ||
compositor_thread.rs | ||
constellation.rs | ||
delayed_composition.rs | ||
lib.rs | ||
pipeline.rs | ||
sandboxing.rs | ||
scrolling.md | ||
surface_map.rs | ||
timer_scheduler.rs | ||
touch.rs | ||
windowing.rs |