web-platform-tests/wpt

Test referrer-policy on static and dynamic script `import`s

Open

#11.023 geöffnet am 16. Mai 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.898 Forks)batch import
help wantedreferrer-policy

Repository-Metriken

Stars
 (4.581 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 23h) (682 gemergte PRs in 30 T)

Beschreibung

The current and plentiful /referrer-policy tests are generated from a handy JSON, but as per the HTML Standard PR that allows a referrer policy to be used when fetching scripts, it seems that we'll need to add support here to test for referrer policy support when statically and dynamically importing scripts.

As per https://github.com/whatwg/html/pull/3678#discussion_r188355238, the current framework will need to be able to support referrer policy communication on:

  • inline classic scripts that import('./x')
  • inline module scripts that import('./x')
  • inline module scripts that import './x'

@jeisinger @estark37 @kristijanburnik any thoughts on how we might want to add support for this? I'm happy to work on this, just haven't dug into the generating framework too much yet...

Contributor Guide