Avoiding getting all SW Registrations during Browser Startup
Upon investigation of a recent bug reporting the Chrome browser hanging during startup, it was found that ServiceWorkerStorage::GetAll Registrations() is called which may take a considerable amount of time. Hence, by removing this call and just getting Registered Origins instead of all registrations, this issue should be resolved. The call to the ServiceWorkerContextWatcher class was also removed from ServiceWorkerContextWrapper, along with GetAllRegistrations() being replaced with GetRegisteredOrigins(). Bug: 807440 Change-Id: I99ef9895ca28dd5ba8977fe422a3d92099527765 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2239590 Commit-Queue: Nidhi Jaju <nidhijaju@google.com> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#779749}
Showing
Please register or sign in to comment