New issue
Advanced search Search tips

Issue 803751 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task

Blocking:
issue 592188
issue 31666



Sign in to add a comment

Ensure a service worker can't initiate a fetch event to extend its own lifetime

Project Member Reported by shimazu@chromium.org, Jan 19 2018

Issue description

This issue is coming from a comment at https://crrev.com/c/872514#message-6f6accffbbdc6f81d639b47a892f4c5ac101926e:
---
Note that while foreign fetch was the only feature using this custom timeout thing, it is probably needed for some regular fetches as well:

if ever nested workers are introduced, fetches for/from workers that are owned by the SW should probably not give the SW more time to execute
fetches or icons etc for notifications initiated by a SW (which should be intercepted by the SW according to https://github.com/w3c/ServiceWorker/issues/1161 and some F2F discussions I remember in the past, although I can't find exactly where that is specified) should probably not let the SW extend its timeout either.
And there might be more, those are just the first two that come to mind.

---

We may need to dig into more about how we deal with the timeout for fetch events.
Has there already been discussion about that?
 

Comment 1 by falken@chromium.org, Jan 22 2018

Status: Available (was: Untriaged)
Thanks mek@, these are good to keep in mind.

We should audit what fetches a SW can initiate that bounce back through fetch event. I think currently none of it is implemented: SW can't start workers that do fetches ( issue 31666 ); and fetches for notifications aren't going through fetch event yet (issue 592188).

Comment 2 by falken@chromium.org, Jan 22 2018

Summary: Ensure a service worker can't initiate a fetch event to extend its own lifetime (was: Custom timeout for fetch events on service workers)
Blocking: 31666 592188
Marking the bugs mentioned above as blocked on this.

Sign in to add a comment