Skip to content

Conversation

@llannasatoll
Copy link
Contributor

@llannasatoll llannasatoll commented Jan 15, 2026

The existing sharedworker string in notRestoredReason is a general back/forward cache block for pages with SharedWorker. To relax this, we are adding two specific strings:

  • sharedworker-message: Evicts a page from back/forward cache if it receives a message from its SharedWorker while cached.
  • sharedworker-with-no-active-client: Blocks or evicts a page if its connected SharedWorker no longer has active client. This ensures workers do not continue running without any active documents.

(See WHATWG Working Mode: Changes for more details.)


/nav-history-apis.html ( diff )

@llannasatoll
Copy link
Contributor Author

@smaug---- @annevk @rakina could you help to review this change?

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Wrapping is incorrect. See the guidelines and previous PR of this sort.

@llannasatoll
Copy link
Contributor Author

Wrapping is incorrect. See the guidelines and previous PR of this sort.

Fixed the wrapping, sorry.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Thanks! I'll leave this to Mozilla to okay as per the prior PRs.

@llannasatoll llannasatoll force-pushed the add-nrr-sharedworker-message branch from 631b2a6 to e20ae5b Compare January 26, 2026 13:02
@zcorpan
Copy link
Member

zcorpan commented Jan 26, 2026

@llannasatoll do you want to file bugs for Gecko and WebKit? Also the Participation check is not green (if your employer has signed, maybe you need to make your org membership public).

@llannasatoll
Copy link
Contributor Author

@llannasatoll do you want to file bugs for Gecko and WebKit? Also the Participation check is not green (if your employer has signed, maybe you need to make your org membership public).

Thanks! I've filed the bugs for Gecko and WebKit, and updated the PR description with the links. Please let me know if there are still any issues with it.

@zcorpan zcorpan merged commit f670dc4 into whatwg:main Jan 29, 2026
2 checks passed
@llannasatoll llannasatoll deleted the add-nrr-sharedworker-message branch January 29, 2026 18:04
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.

5 participants