dom/events/crashtests/422009-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/events/crashtests/422009-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<head>
     1.6 +
     1.7 +<bindings xmlns="http://www.mozilla.org/xbl">
     1.8 +  <binding id="g">
     1.9 +    <implementation>
    1.10 +      <constructor>
    1.11 +        throw 3;
    1.12 +      </constructor>
    1.13 +    </implementation>
    1.14 +  </binding>
    1.15 +</bindings>
    1.16 +
    1.17 +<script type="text/javascript">
    1.18 +
    1.19 +function boom()
    1.20 +{
    1.21 +  var HTML_NS = "http://www.w3.org/1999/xhtml";
    1.22 +  var span = document.createElementNS(HTML_NS, 'span');
    1.23 +  span.style.MozBinding = "url(#g)";
    1.24 +  document.removeChild(document.documentElement)
    1.25 +  var w = document.createElementNS(HTML_NS, 'body');
    1.26 +  w.setAttribute('onload', "/");
    1.27 +  document.appendChild(span);
    1.28 +}
    1.29 +
    1.30 +</script>
    1.31 +</head>
    1.32 +
    1.33 +<body onload="boom();"></body>
    1.34 +</html>

mercurial