Hi module-dev,
I'm now writing referrer policy tests for Worklets (
crbug) and came across questions about the referrer handling in ES6 Modules.
Imagine the following scenario (See also the attached photo. Sorry for dirty handwriting!!)

1) There is a document in ORIGIN-A whose referrer policy is "same-origin".
2) The document static-imports a top-level script from ORIGIN-B. This is cross-origin resource fetch, so the referrer should be empty.
3) The top-level script in ORIGIN-B static-imports a child script from ORIGIN-C. This is cross-origin resource fetch, so the referrer should be empty.
4) The child script in ORIGIN-C static-imports a grandchild script from ORIGIN-C.
QUESTION: What's the referrer of the fetch at 4)? From the Document's POV, ORIGIN-C is a different origin, so the referrer should be empty. On the other hand, from the child script's POV, the grandchild script is hosted in the same origin, so the referrer should be "child script".
Thanks!
