0

Add a feature parameter to fork the prefetch process from the renderer

Advantages of forking from the renderer instead of the browser:
- Prioritizes prefetching the native library used by the renderer, which is more critical for page load latency.
- Leverages the native library shared with Chrome, ensuring it is always ordered.
- Reduces the browser process's workload during WebView startup.

Potential drawback:
- If the renderer initialization is delayed, the prefetch operation may also be delayed.

Bug: 395567815
Change-Id: I502ccfe243bbe4f34921468a50b93bf9dc97222c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299173
Commit-Queue: Ziad Youssef <ziadyoussef@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425084}
This commit is contained in:
Ziad Youssef
2025-02-26 05:09:01 -08:00
committed by Chromium LUCI CQ
parent 91e09126ff
commit 752649644d
5 changed files with 25 additions and 1 deletions
android_webview
testing/variations

@ -26352,6 +26352,9 @@
"experiments": [
{
"name": "Enabled",
"params": {
"WebViewPrefetchFromRenderer": "true"
},
"enable_features": [
"WebViewPrefetchNativeLibrary"
]