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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user