Bug 1839316: part 10) Factor preparing the HTTP request and initiator type out of StartLoadInternal. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D187177
This commit is contained in:
Mirko Brodesser
2023-09-05 12:07:20 +00:00
parent b58e665bd8
commit 4cd052ee9c
2 changed files with 61 additions and 44 deletions

View File

@@ -508,6 +508,10 @@ class ScriptLoader final : public JS::loader::ScriptLoaderInterface {
static void PrepareRequestPriorityAndRequestDependencies(
nsIChannel* aChannel, ScriptLoadRequest* aRequest);
[[nodiscard]] static nsresult PrepareHttpRequestAndInitiatorType(
nsIChannel* aChannel, ScriptLoadRequest* aRequest,
const Maybe<nsAutoString>& aCharsetForPreload);
/**
* Start a load for a script (module or classic) URI.
*