[SVG] Only fire the SVG onload when scripting is enabled and allowed.
parent
f4231994a9
commit
ab0ae6cc24
|
@ -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…
Reference in New Issue