WICG / page-lifecycle

Lifecycle API to support system initiated discarding and freezing
https://wicg.github.io/page-lifecycle/
Other
154 stars 12 forks source link

Explain connection between freezable tasks and freezable task sources #16

Closed domenic closed 6 years ago

domenic commented 6 years ago

I think the idea is that if a task source is freezable, all tasks queued on it are automatically freezable? Right now the spec doesn't explain.

If this is the case, maybe we don't need to have a concept of a freezable task at all, and we can just say to ignore tasks whose task source is freezable?

Or do we need the flexibility to sometimes make a freezable task, even on an unfreezable task source?

spanicker commented 6 years ago

Yes that makes sense, I've removed the "modification" for freezable task, and added a line to task source: "All tasks queued on freezable task sources are automatically freezable"

domenic commented 6 years ago

Looks good!