Open Bug 2037321 Opened 12 hours ago Updated 12 hours ago

[META] Add DevTools support for Speculation Rules

Categories

(DevTools :: General, task)

task

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Keywords: meta)

Speculation Rules (same-origin) are implemented in bug 1969396 (for prefetch). Those rules can be specified via an inline script or an HTTP header, which are then added to an internal speculation rules list.

The DevTools should provide help with debugging those by

  • adding a new entry to the Application panel that provides information around the rules definition and about prefetched (and prerendered once implemented) sources.
  • providing some indication on network requests whether they were fetched speculatively.
  • outputing errors in the Web Console for misconfigurations in the Speculation Rules and issues on fetching any sources due to those rules.
  • Allowing to inspect prerendered sources (once prerendering is implemented).

The Chrome DevTools team has a good blog post explaining their support for Speculation Rules plus an online demo page that can be used for testing.

Sebastian

Application panel work will be done in Bug 2037256

Depends on: 2037256
You need to log in before you can comment on or make changes to this bug.