servo/components/constellation
Josh Matthews 944e795606
constellation: Only return focused browsing contexts that exist. (#36330)
The webdriver server relies on the constellation to report which
browsing context is focused, and assumes that a focused context is ready
for interaction. However, new browsing contexts exist in a weird state
where they are not tracked by the constellation until the initial load
is complete, which leads to the constellation rejecting attempts to
navigate a browsing context right after it's created. These changes
ensure the constellation does not report a browsing context as focused
until it's actually created and ready for interaction.

Testing: Run `./mach test-wpt --product servodriver
tests/wpt/mozilla/tests/mozilla/DOMParser.html`, which now runs to
completion.
Fixes: #34551
Fixes: #36328

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-04-04 21:41:14 +00:00
..
browsingcontext.rs constellation: Stop assuming that the viewport is shared by all WebViews (#36312) 2025-04-04 17:06:34 +00:00
Cargo.toml webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
constellation.rs constellation: Only return focused browsing contexts that exist. (#36330) 2025-04-04 21:41:14 +00:00
event_loop.rs compositor: Remove the script channel from the compositor (#36089) 2025-03-23 11:19:27 +00:00
lib.rs constellation: Rename messages sent to the Constellation (#36341) 2025-04-04 19:39:38 +00:00
logging.rs constellation: Rename messages sent to the Constellation (#36341) 2025-04-04 19:39:38 +00:00
pipeline.rs Prevent zombie processes in multi-process mode. (#36329) 2025-04-04 19:39:13 +00:00
process_manager.rs Prevent zombie processes in multi-process mode. (#36329) 2025-04-04 19:39:13 +00:00
sandboxing.rs Prevent zombie processes in multi-process mode. (#36329) 2025-04-04 19:39:13 +00:00
serviceworker.rs Prevent zombie processes in multi-process mode. (#36329) 2025-04-04 19:39:13 +00:00
session_history.rs constellation: Stop assuming that the viewport is shared by all WebViews (#36312) 2025-04-04 17:06:34 +00:00
tracing.rs constellation: Rename messages sent to the Constellation (#36341) 2025-04-04 19:39:38 +00:00
webview_manager.rs Separate WebviewManager from Webview in compositor and constellation (#36302) 2025-04-04 07:34:19 +00:00