servo/components/constellation
Martin Robinson fbd77b4524
script: Move navigation fetching to the ScriptThread (#34919)
This allows reusing the asynchrnous fetch mechanism that we use for page
resources and is likely a step toward removing the `FetchThread`.

Benefits:
 - Reduces IPC traffic during navigation. Now instead of bouncing
   between the constellation and the `ScriptThread` responses are sent
   directly to the `ScriptThread`.
 - Allows cancelling loads after redirects, which was not possible
   before.

There is the question of what to do when a redirect is cross-origin
(#23037). This currently isn't handled properly as the `Constellation`
sends data to the same `Pipeline` that initiated the load. This change
doesn't fix this issue, but does make it more possible for the
`ScriptThread` to shut down the pipeline and ask the `Constellation` to
replace it with a new one.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-10 12:19:40 +00:00
..
browsingcontext.rs Trace more functions by adding perfetto tracing events (#33417) 2024-09-13 05:51:19 +00:00
Cargo.toml Add webgpu feature flag (#34444) 2024-12-05 16:07:27 +00:00
constellation.rs script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
event_loop.rs clippy: Fix warnings in components/constellation (#31610) 2024-03-11 10:22:28 +00:00
lib.rs script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
logging.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
pipeline.rs script: Refactor channels in ScriptThread into receivers and senders (#34776) 2024-12-26 03:34:54 +00:00
sandboxing.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
serviceworker.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
session_history.rs Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
tracing.rs script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
webview.rs Move non-gfx things out of gfx_traits and create a base crate (#32296) 2024-05-17 12:28:58 +00:00