Commit bbfba64f authored by Kagami Sascha Rosylight's avatar Kagami Sascha Rosylight
Browse files

Bug 1646140 - Fire SVG onload only when scripting is enabled. r=hsivonen, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D89218
parent 8cbcebbc
......@@ -1072,6 +1072,9 @@ void nsHtml5TreeBuilder::elementPopped(int32_t aNamespace, nsAtom* aName,
}
if (aNamespace == kNameSpaceID_SVG) {
if (aName == nsGkAtoms::svg) {
if (!scriptingEnabled || mPreventScriptExecution) {
return;
}
if (mBuilder) {
nsHtml5TreeOperation::SvgLoad(static_cast<nsIContent*>(aElement));
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment