summaryrefslogtreecommitdiffstats
path: root/dom/script
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-22 07:16:29 +0000
committerMoonchild <moonchild@palemoon.org>2020-08-30 09:38:54 +0000
commit702ad218b0279227000a5ca4e729260ba29bad6b (patch)
tree6d5b8b251035b9dde250a6ffc6a5962af22335c0 /dom/script
parentb9af9c0c5168044f033a4a42ec3ee2ea7741ce4b (diff)
downloadUXP-702ad218b0279227000a5ca4e729260ba29bad6b.tar
UXP-702ad218b0279227000a5ca4e729260ba29bad6b.tar.gz
UXP-702ad218b0279227000a5ca4e729260ba29bad6b.tar.lz
UXP-702ad218b0279227000a5ca4e729260ba29bad6b.tar.xz
UXP-702ad218b0279227000a5ca4e729260ba29bad6b.zip
Issue #618 - Integrity for descendant module scripts should be the empty string
Because the spec says so.
Diffstat (limited to 'dom/script')
-rw-r--r--dom/script/ModuleLoadRequest.cpp2
-rw-r--r--dom/script/ScriptLoader.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/dom/script/ModuleLoadRequest.cpp b/dom/script/ModuleLoadRequest.cpp
index 5b0e0bdba..746a355b5 100644
--- a/dom/script/ModuleLoadRequest.cpp
+++ b/dom/script/ModuleLoadRequest.cpp
@@ -53,7 +53,7 @@ ModuleLoadRequest::ModuleLoadRequest(nsIURI* aURI,
aParent->mElement,
aParent->mJSVersion,
aParent->mCORSMode,
- aParent->mIntegrity,
+ SRIMetadata(),
aParent->mURI,
aParent->mReferrerPolicy),
mIsTopLevel(false),
diff --git a/dom/script/ScriptLoader.h b/dom/script/ScriptLoader.h
index 2a14b53ae..121636e91 100644
--- a/dom/script/ScriptLoader.h
+++ b/dom/script/ScriptLoader.h
@@ -66,7 +66,7 @@ public:
nsIScriptElement* aElement,
uint32_t aVersion,
mozilla::CORSMode aCORSMode,
- const mozilla::dom::SRIMetadata& aIntegrity,
+ const SRIMetadata& aIntegrity,
nsIURI* aReferrer,
mozilla::net::ReferrerPolicy aReferrerPolicy)
: mKind(aKind),
@@ -175,7 +175,7 @@ public:
nsAutoCString mURL; // Keep the URI's filename alive during off thread parsing.
int32_t mLineNo;
const mozilla::CORSMode mCORSMode;
- const mozilla::dom::SRIMetadata mIntegrity;
+ const SRIMetadata mIntegrity;
const nsCOMPtr<nsIURI> mReferrer;
const mozilla::net::ReferrerPolicy mReferrerPolicy;
};
@@ -479,7 +479,7 @@ private:
nsIScriptElement* aElement,
uint32_t aVersion,
mozilla::CORSMode aCORSMode,
- const mozilla::dom::SRIMetadata& aIntegrity,
+ const SRIMetadata& aIntegrity,
mozilla::net::ReferrerPolicy aReferrerPolicy);
/**