Bug 1244898: Suppress the exception from BeginElement. r=bz

This commit is contained in:
Kyle Huey 2016-02-05 10:12:25 -08:00
parent dfc97a509b
commit 5ab7e29b04
3 changed files with 16 additions and 1 deletions

View File

@ -372,7 +372,7 @@ SVGAnimationElement::ActivateByHyperlink()
// else, silently fail. We mustn't be part of an SVG document fragment that
// is attached to the document tree so there's nothing we can do here
} else {
ErrorResult rv;
IgnoredErrorResult rv;
BeginElement(rv);
}
}

View File

@ -0,0 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<script>
window.addEventListener("load", function() {
location.hash = "#a";
document.documentElement.removeAttribute("class");
}, false);
</script>
<animate xmlns="http://www.w3.org/2000/svg" id="a"/>
</html>

View File

@ -74,4 +74,5 @@ load 880544-5.svg
load 898915-1.svg
load 1035248-1.svg
load 1035248-2.svg
load 1244898-1.xhtml
load zero-size-image.svg