commit | da4fd3ae6c994c07f0ea79310f870bea62bc37e7 | [log] [tgz] |
---|---|---|
author | David Risney <david.risney@microsoft.com> | Tue Mar 18 18:34:49 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 18 18:34:49 2025 |
tree | f11486293612bab59ba76ffb4917bcd2956c5e12 | |
parent | f14911f2baf5e626f616291b2ed880423fd31c36 [diff] |
Defer registerProtocolHandler registration work while prerendering. This change modifies navigator.registerProtocolHandler and navigator.unregisterProtocolHandler while prerendering. They will continue to synchronously perform parameter validation, but they will defer the work to register or unregister protocol handlers until after the prerendered document is activated. I've added WPT to test the synchronous parameter validation, the deferred registration, and the deferred unregistration. In order for the unregistration test to work in content shell I've added a Shell::UnregisterProtocolHandler implementation. It previously only had a Shell::RegisterProtocolHandler. Bug: 40288240 Change-Id: Ibff03d4acd50434f5753c99a5314fc10e2f3f375 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6322749 Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Dave Risney <david.risney@microsoft.com> Reviewed-by: Peter Beverloo <peter@chromium.org> Reviewed-by: Gyuyoung Kim <gyuyoung@igalia.com> Reviewed-by: Domenic Denicola <domenic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1434291}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.