WICG / nav-speculation

Proposal to enable privacy-enhanced preloading
https://wicg.github.io/nav-speculation/
Other
146 stars 33 forks source link

Spec the use of No-Vary-Search with prerender #310

Closed kjmcnee closed 1 month ago

kjmcnee commented 2 months ago

The NVS hint from the speculation rule, if any, is now passed to the prerender creation.

The map of URLs to prerendering traversables is replaced with a list of a struct containing additional information about the prerender to support more flexible matching.

When the initial navigation of a prerendering traversable commits, we record its No-Vary-Search value.

When getting a prerender to activate, we now wait on potentially multiple ongoing prerenders that could match based on the NVS hint. This logic is similar to the prefetch case.

During activation, we update the prerender's URL if there is a difference in the prerendered document's URL and the URL navigated to in the case of inexact matching due to NVS.

github-actions[bot] commented 2 months ago
Preview: - [prerendering.html](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/head/prerendering.html) ([diff](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/diff/prerendering.html) [base](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/base/prerendering.html)) - [speculation-rules.html](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/head/speculation-rules.html) ([diff](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/diff/speculation-rules.html) [base](https://storage.googleapis.com/spec-previews/WICG/nav-speculation/pull/310/base/speculation-rules.html))
kjmcnee commented 1 month ago

Sorry for the delay. I think this is ready for further review. PTAL.