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
and also adding a hook at the embedding level via the escape key, to perform a window.stop() on the "foreground, top-most document", or perhaps 'the active tab' is another way to put it.
By the way, I think such a hook is covered by this part of the spec: "User agents may allow users to explicitly invoke the abort a document algorithm for a Document. If the user does so, then, if that Document is an active document, the user agent should queue a task to fire an event named abort at that Document's Window object before invoking the abort algorithm."
Currently we don't have the concept of an "foreground, top-most document/active tab", so maybe I'll end implementing it in some simple form as part of this too @paulrouget
Activity
gterzian commentedon Jun 28, 2018
If no one is doing this, I would be interested...
gterzian commentedon Jun 29, 2018
I propose making this about implementing the following:
and also adding a hook at the embedding level via the escape key, to perform a
window.stop()on the "foreground, top-most document", or perhaps 'the active tab' is another way to put it.By the way, I think such a hook is covered by this part of the spec: "User agents may allow users to explicitly invoke the abort a document algorithm for a Document. If the user does so, then, if that Document is an active document, the user agent should queue a task to fire an event named abort at that Document's Window object before invoking the abort algorithm."
Currently we don't have the concept of an "foreground, top-most document/active tab", so maybe I'll end implementing it in some simple form as part of this too @paulrouget
paulrouget commentedon Jun 29, 2018
Works for me.
gterzian commentedon Jun 29, 2018
Also worth noting:
""abort" Event Isn't Fired When Aborting Document Load" whatwg/html#3525
"add test for aborting a document load" web-platform-tests/wpt#9933
"Add tests for
window.stop" web-platform-tests/wpt#11154gterzian commentedon Jul 2, 2018
Also worth noting:
When to "fail the connection" of an EventSource? whatwg/html#3789
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…
Auto merge of #21111 - gterzian:implement_document_load_cancellation,…