mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[SVG] Only fire the SVG onload when scripting is enabled and allowed
This commit is contained in:
parent
57c79f8295
commit
ba9802a724
1 changed files with 3 additions and 0 deletions
|
|
@ -945,6 +945,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue