summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-11-04 23:06:04 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-04 22:06:43 +0200
commit8884db9790650ee8043299d421e4eb30ad9fc031 (patch)
tree5212c3e021753fcb7464585e68c76f77dc21eab9
parent28a69cf1e2d8c2ec1707961fef541ed5c33cf615 (diff)
downloaduxp-8884db9790650ee8043299d421e4eb30ad9fc031.tar.gz
[DOM/XSLT] Pass sandbox flags from source doc.
-rw-r--r--dom/xslt/base/txURIUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/xslt/base/txURIUtils.cpp b/dom/xslt/base/txURIUtils.cpp
index bce2f8d0f3..885706fa39 100644
--- a/dom/xslt/base/txURIUtils.cpp
+++ b/dom/xslt/base/txURIUtils.cpp
@@ -74,6 +74,7 @@ URIUtils::ResetWithSource(nsIDocument *aNewDoc, nsINode *aSourceNode)
aNewDoc->Reset(channel, loadGroup);
aNewDoc->SetPrincipal(sourcePrincipal);
aNewDoc->SetBaseURI(sourceDoc->GetDocBaseURI());
+ aNewDoc->SetSandboxFlags(sourceDoc->GetSandboxFlags());
// Copy charset
aNewDoc->SetDocumentCharacterSetSource(