mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-25 18:29:40 -05:00
Issue #2464 - Part 9: Implement importmap integrity verification.
https://bugzilla.mozilla.org/show_bug.cgi?id=1945540
This commit is contained in:
1 parent
5c7eb114dd
commit
480b203dea
7 files changed
+146
-7
No files matched your search
@@ -57,7 +57,8 @@ static VisitedURLSet* NewVisitedSetForTopLevelImport(nsIURI* aURI) {
|
||||
/* static */ ModuleLoadRequest* ModuleLoadRequest::CreateStaticImport(
|
||||
nsIURI* aURI, ModuleLoadRequest* aParent) {
|
||||
auto request =
|
||||
new ModuleLoadRequest(aURI, aParent->mFetchOptions, SRIMetadata(),
|
||||
new ModuleLoadRequest(aURI, aParent->mFetchOptions,
|
||||
aParent->mLoader->ComputeModuleIntegrity(aURI),
|
||||
aParent->mURI, false, /* is top level */
|
||||
false, /* is dynamic import */
|
||||
aParent->mLoader, aParent->mVisitedSet);
|
||||
@@ -77,7 +78,7 @@ static VisitedURLSet* NewVisitedSetForTopLevelImport(nsIURI* aURI) {
|
||||
MOZ_ASSERT(aPromise);
|
||||
|
||||
auto request = new ModuleLoadRequest(
|
||||
aURI, aFetchOptions, SRIMetadata(), aBaseURL,
|
||||
aURI, aFetchOptions, aLoader->ComputeModuleIntegrity(aURI), aBaseURL,
|
||||
true, /* is top level */
|
||||
true, /* is dynamic import */
|
||||
aLoader, NewVisitedSetForTopLevelImport(aURI));
|
||||
|
||||
Reference in new issue
Block a user