diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-23 01:02:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-23 08:28:46 +0000 |
commit | 37efb98518ae720e9308a8cd4732817a46e15f17 (patch) | |
tree | 14a88bc9804cb14f56023ea898e2be30d6041818 /parser/html/nsHtml5TreeBuilderCppSupplement.h | |
parent | 3272147d97757673898da87bf02ea93438cae1a1 (diff) | |
download | UXP-37efb98518ae720e9308a8cd4732817a46e15f17.tar UXP-37efb98518ae720e9308a8cd4732817a46e15f17.tar.gz UXP-37efb98518ae720e9308a8cd4732817a46e15f17.tar.lz UXP-37efb98518ae720e9308a8cd4732817a46e15f17.tar.xz UXP-37efb98518ae720e9308a8cd4732817a46e15f17.zip |
[SVG] Only fire the SVG onload when scripting is enabled and allowed
Diffstat (limited to 'parser/html/nsHtml5TreeBuilderCppSupplement.h')
-rw-r--r-- | parser/html/nsHtml5TreeBuilderCppSupplement.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parser/html/nsHtml5TreeBuilderCppSupplement.h b/parser/html/nsHtml5TreeBuilderCppSupplement.h index f0326a20a..51966077c 100644 --- a/parser/html/nsHtml5TreeBuilderCppSupplement.h +++ b/parser/html/nsHtml5TreeBuilderCppSupplement.h @@ -922,6 +922,9 @@ nsHtml5TreeBuilder::elementPopped(int32_t aNamespace, nsIAtom* aName, nsIContent } if (aNamespace == kNameSpaceID_SVG) { if (aName == nsHtml5Atoms::svg) { + if (!scriptingEnabled || mPreventScriptExecution) { + return; + } if (mBuilder) { nsHtml5TreeOperation::SvgLoad(static_cast<nsIContent*>(aElement)); return; |