Intent to Prototype: Document Rules

229 views
Skip to first unread message

Adithya Srinivasan

unread,
Oct 14, 2022, 6:03:11 PM10/14/22
to blink-dev

Contact emails
jbr...@chromium.org, adit...@chromium.org

Explainer
https://github.com/WICG/nav-speculation/blob/main/triggers.md#document-rules

Specification
https://wicg.github.io/nav-speculation/speculation-rules.html

Summary
An extension to Speculation Rules syntax that lets the browser obtain URLs for speculation from link elements in a page. They may include criteria which restrict which of these links can be used.

Blink component
Internals>Preload

Motivation
Provides a more powerful and convenient mechanism for specifying URLs for pre-navigation speculation, instead of directly listing URLs. It takes into account current links in the document (which can dynamically change), and allows developers to specify pattern-based allow/deny lists. This is more convenient in scenarios where a page contains a large number of links or dynamic content, and it may not be convenient for the author to synchronize this information with a separate list.

Initial public proposal
https://github.com/WICG/proposals/issues/2

TAG review
https://github.com/w3ctag/design-reviews/issues/721

TAG review status
Pending (TAG reviewed an earlier version of this proposal and a few changes have been made in response to prior feedback.)


Risks


Interoperability and Compatibility


Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals: No signals

WebView application risks

No impact.


Debuggability
Debugging support for Speculation Rules and Preloading is currently being designed.

Is this feature fully tested by web-platform-tests?
No, but will be tested when support for testing Speculation Rules is added.

Flag name
SpeculationRulesDocumentRules

Requires code in //chrome?
False

Tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=1371522

Estimated milestones
M110 (earliest possible milestone for Intent to Experiment)

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5112150536749056

This intent message was generated by Chrome Platform Status.

Reply all
Reply to author
Forward
0 new messages