mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1763372 - address new issues in the hybrid build; r=jonco
Depends on D143036 Differential Revision: https://phabricator.services.mozilla.com/D143068
This commit is contained in:
parent
f1dd84285f
commit
604a6aa077
@ -14,8 +14,8 @@
|
||||
|
||||
#include "js/OffThreadScriptCompilation.h"
|
||||
#include "js/SourceText.h"
|
||||
#include "js/loader/ScriptLoadRequest.h"
|
||||
#include "js/loader/LoadContextBase.h"
|
||||
#include "js/loader/ModuleLoadRequest.h"
|
||||
|
||||
#include "ScriptLoadContext.h"
|
||||
#include "ModuleLoadRequest.h"
|
||||
|
@ -7,8 +7,10 @@
|
||||
#include "ModuleLoadRequest.h"
|
||||
|
||||
#include "mozilla/HoldDropJSObjects.h"
|
||||
#include "mozilla/dom/ScriptLoadContext.h"
|
||||
|
||||
#include "LoadedScript.h"
|
||||
#include "LoadContextBase.h"
|
||||
#include "ModuleLoaderBase.h"
|
||||
|
||||
namespace JS::loader {
|
||||
@ -55,9 +57,9 @@ VisitedURLSet* ModuleLoadRequest::NewVisitedSetForTopLevelImport(nsIURI* aURI) {
|
||||
ModuleLoadRequest::ModuleLoadRequest(
|
||||
nsIURI* aURI, ScriptFetchOptions* aFetchOptions,
|
||||
const mozilla::dom::SRIMetadata& aIntegrity, nsIURI* aReferrer,
|
||||
mozilla::dom::ScriptLoadContext* aContext, bool aIsTopLevel,
|
||||
bool aIsDynamicImport, ModuleLoaderBase* aLoader,
|
||||
VisitedURLSet* aVisitedSet, ModuleLoadRequest* aRootModule)
|
||||
LoadContextBase* aContext, bool aIsTopLevel, bool aIsDynamicImport,
|
||||
ModuleLoaderBase* aLoader, VisitedURLSet* aVisitedSet,
|
||||
ModuleLoadRequest* aRootModule)
|
||||
: ScriptLoadRequest(ScriptKind::eModule, aURI, aFetchOptions, aIntegrity,
|
||||
aReferrer, aContext),
|
||||
mIsTopLevel(aIsTopLevel),
|
||||
|
@ -7,6 +7,7 @@
|
||||
#ifndef js_loader_ModuleLoadRequest_h
|
||||
#define js_loader_ModuleLoadRequest_h
|
||||
|
||||
#include "LoadContextBase.h"
|
||||
#include "ScriptLoadRequest.h"
|
||||
#include "ModuleLoaderBase.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
@ -52,7 +53,7 @@ class ModuleLoadRequest final : public ScriptLoadRequest {
|
||||
|
||||
ModuleLoadRequest(nsIURI* aURI, ScriptFetchOptions* aFetchOptions,
|
||||
const SRIMetadata& aIntegrity, nsIURI* aReferrer,
|
||||
mozilla::dom::ScriptLoadContext* aContext, bool aIsTopLevel,
|
||||
LoadContextBase* aContext, bool aIsTopLevel,
|
||||
bool aIsDynamicImport, ModuleLoaderBase* aLoader,
|
||||
VisitedURLSet* aVisitedSet, ModuleLoadRequest* aRootModule);
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "js/SourceText.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/dom/AutoEntryScript.h"
|
||||
#include "mozilla/dom/ScriptLoadContext.h"
|
||||
#include "mozilla/CycleCollectedJSContext.h" // nsAutoMicroTask
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
Loading…
Reference in New Issue
Block a user