[Webkit-unassigned] [Bug 191986] Updating a service worker during a navigation load sometimes makes the load fail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 27 11:43:13 PST 2018


--- Comment #3 from Chris Dumez <cdumez at apple.com> ---
Our tryActivate implementation does:
    // Invoke Activate with registration if either of the following is true:
    // - registration's active worker is null.
    // - The result of running Service Worker Has No Pending Events with registration's active worker is true,
    //   and no service worker client is using registration or registration's waiting worker's skip waiting flag is set.
    if (!activeWorker() || (!activeWorker()->hasPendingEvents() && (!hasClientsUsingRegistration() || waitingWorker()->isSkipWaitingFlagSet())))

So somehow, even though there is an active worker and a pending load handled by that worker, we still call activate().

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181127/f2f62ac0/attachment.html>

More information about the webkit-unassigned mailing list