background-fetch icon indicating copy to clipboard operation
background-fetch copied to clipboard

Tag should be released when a terminal event fires.

Open paullewis opened this issue 7 years ago • 1 comments

We should define that a tag gets released whenever the backgroundfetch* events fire.

Filed against Chrome here: https://bugs.chromium.org/p/chromium/issues/detail?id=709921

paullewis avatar Apr 10 '17 09:04 paullewis

The important thing to define is when it fires— before or after the Service Worker event runs?

If the tag gets released before the event runs, it means that developers might be able to start another Background Fetch having the same tag in the event handler, but that comes at the cost of additional bookkeeping for the user agent.

Chrome's experimental implementation releases the tag after the event finishes for simplicity.

beverloo avatar Apr 10 '17 23:04 beverloo