gecko-dev/js/loader
Yoshi Cheng-Hao Huang b758eaeb68 Bug 1841859 - Part 2: Parse the referrer policy from http header and update the referrer policy. r=jonco,smaug
This implementes the following requirement from the spec:

https://html.spec.whatwg.org/#fetch-a-single-module-script

12. In both cases, let processResponseConsumeBody given response response and null, failure, or a byte sequence bodyBytes be the following algorithm:

  5. Let referrerPolicy be the result of parsing the `Referrer-Policy` header given response.
  6. If referrerPolicy is not the empty string, set options's referrer policy to referrerPolicy.

Differential Revision: https://phabricator.services.mozilla.com/D186944
2023-09-20 17:32:15 +00:00
..
ImportMap.cpp
ImportMap.h
LoadContextBase.cpp
LoadContextBase.h
LoadedScript.cpp Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
LoadedScript.h Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
ModuleLoaderBase.cpp Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
ModuleLoaderBase.h Bug 1847469 - Part 6: Use column number types in Module API. r=iain 2023-08-16 17:31:37 +00:00
ModuleLoadRequest.cpp Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
ModuleLoadRequest.h Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
moz.build
ResolveResult.h
ScriptKind.h
ScriptLoadRequest.cpp Bug 1841859 - Part 1: Move ReferrerPolicy to ScriptLoadRequest and LoadedScript. r=jonco,smaug 2023-09-20 17:32:15 +00:00
ScriptLoadRequest.h Bug 1841859 - Part 2: Parse the referrer policy from http header and update the referrer policy. r=jonco,smaug 2023-09-20 17:32:15 +00:00