servo/components/net
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
..
fetch script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
protocols Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
tests Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
async_runtime.rs Add prefs to limit threadpool sizes (#34478) 2024-12-07 05:25:17 +00:00
Cargo.toml Add http2 feature for hyper-util (#34920) 2025-01-09 13:37:08 +00:00
connector.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
cookie.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
cookie_storage.rs net: Stop using both versions of the time crate in the cookie code (#33260) 2024-08-30 17:15:47 +00:00
decoder.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
filemanager_thread.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
hosts.rs Replace the lazy_static crate with std::sync::LazyLock in components/net (#33046) 2024-08-14 12:15:55 +00:00
hsts.rs doc(resources): Preferences, HstsPreloadList, RippyPNG (#33775) 2024-10-10 18:19:41 +00:00
http_cache.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
http_loader.rs script: Move navigation fetching to the ScriptThread (#34919) 2025-01-10 12:19:40 +00:00
image_cache.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
lib.rs net: Refactor Decoder (#33611) 2024-10-02 16:59:31 +00:00
local_directory_listing.rs clippy: Fix a bunch of warnings in script (#32680) 2024-07-04 11:40:23 +00:00
mime_classifier.rs clippy: Fix a bunch of warnings in script (#32680) 2024-07-04 11:40:23 +00:00
resource_thread.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
storage_thread.rs build: upgrade rustc to 1.81.0 (#34270) 2024-12-12 07:26:16 +00:00
subresource_integrity.rs clippy: Fix warnings in components/net (#31626) 2024-03-13 09:40:04 +00:00
websocket_loader.rs build(deps): bump async-tungstenite from 0.28.0 to 0.28.2 (#34904) 2025-01-08 21:51:38 +00:00