-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce kServiceWorkerScopeCache feature
Before this CL, there was the following problem. When a service worker is registered in https://a.com/scope, the origin of this URL (https://a.com/ in this case) is used for StorageKey. This means that, even when the user navigates to https://a.com/ (which is out-of-scope of https://a.com/scope service worker), StorageKey becomes the same as https://a.com/scope, and FindRegistrationForClientUrl mojo needs to be called. FindRegistrationForClientUrl delays navigation, hence we want to avoid calling it when possible. This CL introduces kServiceWorkerScopeCache feature which creates a ServiceWorker's scope URL cache on the UI thread. By using this cache, we can avoid calling the FindRegistrationForClientUrl mojo function when it's not needed. [doc (google internal)] https://docs.google.com/document/d/1746-NLoUY5Pr3oimcVC_frNqOgkF3jOsdBsDSQlE-RA Bug: 1411197 Bug: 1375174 Change-Id: I113036c11d2c29b902577220243001b818bc940f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4173488 Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Shunya Shishido <sisidovski@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Commit-Queue: Minoru Chikamune <chikamune@chromium.org> Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1100878}
- Loading branch information
1 parent
9cf99e7
commit 821732c
Showing
10 changed files
with
453 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.