Chromium Code Reviews
DescriptionDon't block InstallableManager::GetData calls when waiting for a service worker.
If the InstallableManager is processing a task that is waiting for the
site to register a service worker, all new tasks will block until the
first task is complete. If the site never registers a service worker,
all new calls to InstallableManager will never succeed, even if they are
not requesting a service worker check.
This is particularly important if installability checking on page load is
enabled. Trying to add a non-PWA with a manifest and icon to
homescreen will not use the manifest icon or details since the onload
check is hanging waiting for a service worker.
This CL addresses the bug by introducing a paused task queue to hold
waiting tasks. Existing tests are amended to explicitly check the paused
case.
BUG=737013
Review-Url: https://codereview.chromium.org/2963473003
Cr-Commit-Position: refs/heads/master@{#482564}
Committed: https://chromium.googlesource.com/chromium/src/+/ee088c9f11822f91a180217765a1f71261e24038
Patch Set 1 #
Total comments: 3
Messages
Total messages: 18 (11 generated)
|
|||||||||||||||||||||||||||||||||||||