Clarify EventSource behavior with the back/forward cache#12381
Open
zp1996 wants to merge 1 commit intowhatwg:mainfrom
Open
Clarify EventSource behavior with the back/forward cache#12381zp1996 wants to merge 1 commit intowhatwg:mainfrom
zp1996 wants to merge 1 commit intowhatwg:mainfrom
Conversation
Abort in-flight EventSource fetches when a Document enters BFCache, and reconnect them when it is restored. Fixes whatwg#12363
Author
|
I’ve signed as an individual, as this contribution is not made on behalf of my employer. @annevk Could you help verify my participant-data entry, or let me know if I should ask someone else? |
Author
|
Gentle ping, this PR is currently blocked on participant-data verification. |
smaug----
reviewed
May 4, 2026
|
|
||
| <ol> | ||
| <li><p>Abort any instances of the <span data-x="concept-fetch">fetch</span> algorithm started | ||
| for <var>eventSource</var>.</p></li> |
There was a problem hiding this comment.
Are there tests for the events this might fire?
Author
There was a problem hiding this comment.
Good point. This could be observable through EventSource events. I'll add tests
for the expected error/open behavior around BFCache entry/restore.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Abort in-flight EventSource fetches when a Document enters BFCache, and reconnect them when it is restored.
Fixes #12363.
/browsing-the-web.html ( diff )
/document-lifecycle.html ( diff )
/server-sent-events.html ( diff )