dom/base/crashtests/637116.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/crashtests/637116.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +
     1.7 +<head>
     1.8 +<script>
     1.9 +
    1.10 +function K(v) { return function() { return v; } }
    1.11 +
    1.12 +var errorProxy = Proxy.create({get: function() { throw new Error(); }});
    1.13 +
    1.14 +function boom()
    1.15 +{
    1.16 +  var focused = document.createElementNS("http://www.w3.org/1999/xhtml", "input");
    1.17 +  document.body.appendChild(focused);
    1.18 +  var otherWin = window.open("data:text/html,1", "_blank", "width=200,height=200");
    1.19 +  try { otherWin.history.replaceState(errorProxy, "title", "replaceState.html"); } catch(e) {}
    1.20 +  focused.focus();
    1.21 +  focused.addEventListener("foo", K(otherWin.applicationCache), false);
    1.22 +  otherWin.close();
    1.23 +}
    1.24 +
    1.25 +</script>
    1.26 +</head>
    1.27 +
    1.28 +<body onload="boom();">
    1.29 +<button onclick="boom();">If you have popups blocked, click here to start the leak test</button>
    1.30 +</body>
    1.31 +
    1.32 +</html>

mercurial