Skip to content

Clarify EventSource behavior with the back/forward cache#12381

Open
zp1996 wants to merge 1 commit intowhatwg:mainfrom
zp1996:main
Open

Clarify EventSource behavior with the back/forward cache#12381
zp1996 wants to merge 1 commit intowhatwg:mainfrom
zp1996:main

Conversation

@zp1996
Copy link
Copy Markdown

@zp1996 zp1996 commented Apr 16, 2026

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 )

Abort in-flight EventSource fetches when a Document enters BFCache,
and reconnect them when it is restored.

Fixes whatwg#12363
@zp1996
Copy link
Copy Markdown
Author

zp1996 commented Apr 16, 2026

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?

@zp1996
Copy link
Copy Markdown
Author

zp1996 commented Apr 19, 2026

Gentle ping, this PR is currently blocked on participant-data verification.
Could someone help verify my entry and take a look when convenient? Thanks!

Comment thread source

<ol>
<li><p>Abort any instances of the <span data-x="concept-fetch">fetch</span> algorithm started
for <var>eventSource</var>.</p></li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there tests for the events this might fire?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. This could be observable through EventSource events. I'll add tests
for the expected error/open behavior around BFCache entry/restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Clarify EventSource behavior for documents entering and restoring from BFCache

2 participants