You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if Service Workers could detect the "abort" event that should fire on the DOM when users cancel a document load (e.g. window.stop(), ESC key, browser stop button). Perhaps:
This would be specifically useful when implementing custom Streams in Service Workers. The SW could detect "abort" events, close open streams, do cleanup, or send notifications to the underlying application.
For example, this SW progress indicator demo (https://fetch-progress.anthum.com/sw-basic/) implements a ReadableStream and has no way to for the SW to respond when the document load is aborted. Additionally, the network transfer continues in Chrome (Firefox successfully stops it), which may be different issue entirely.
The text was updated successfully, but these errors were encountered:
It would be great if Service Workers could detect the "abort" event that should fire on the DOM when users cancel a document load (e.g.
window.stop()
, ESC key, browser stop button). Perhaps:This would be specifically useful when implementing custom Streams in Service Workers. The SW could detect "abort" events, close open streams, do cleanup, or send notifications to the underlying application.
For example, this SW progress indicator demo (https://fetch-progress.anthum.com/sw-basic/) implements a
ReadableStream
and has no way to for the SW to respond when the document load is aborted. Additionally, the network transfer continues in Chrome (Firefox successfully stops it), which may be different issue entirely.The text was updated successfully, but these errors were encountered: