mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 21:07:30 +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 (aNamespace == kNameSpaceID_SVG) {
|
||||||
if (aName == nsHtml5Atoms::svg) {
|
if (aName == nsHtml5Atoms::svg) {
|
||||||
|
if (!scriptingEnabled || mPreventScriptExecution) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (mBuilder) {
|
if (mBuilder) {
|
||||||
nsHtml5TreeOperation::SvgLoad(static_cast<nsIContent*>(aElement));
|
nsHtml5TreeOperation::SvgLoad(static_cast<nsIContent*>(aElement));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue