Skip to content

should update() during top level script evaluation be ignored? #800

Closed
@wanderview

Description

@wanderview

The wpt tests we imported from blink has this code at the top level of one of its service worker scripts:

// update() during the script evaluation should be ignored.
self.registration.update();

I don't see anything in the spec that does this. It seems like it might be a good idea, though, to avoid potential infinite async update loops. For example, if the install event fails or something I think you could end up with an endless set of failing update jobs running in the background.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions