summaryrefslogtreecommitdiffstats
path: root/layout/xul/crashtests/377592-1.svg
blob: 7371708f248f40719719e5fbe1413a1ff0291850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     onload="setTimeout(boom, 30);"
     class="reftest-wait">


<script>

var emptyBinding = "url('data:text/xml,%3Cbindings%20xmlns%3D%22http%3A%2F%2Fwww.mozilla.org%2Fxbl%22%3E%3Cbinding%20id%3D%22foo%22%3E%3Ccontent%3E%0A%0A%20%20%20%20%0A%3C%2Fcontent%3E%3C%2Fbinding%3E%3C%2Fbindings%3E%0A')";

function boom()
{
  var foreignObject = document.getElementById("foreignObject")
  foreignObject.style.MozBinding = emptyBinding;

  document.documentElement.removeAttribute("class");
}

</script>


<foreignObject width="500" height="500" transform="scale(.7,.7)" id="foreignObject" y="300">
  <xul:menuitem />
</foreignObject>


</svg>