content/html/document/crashtests/631421.html
author Johnny Stenback <jst@mozilla.com>
Wed, 20 Apr 2011 19:30:13 +0200
branchGECKO19119_2011041408_RELBRANCH
changeset 27400 6a8fcd90b366c83c132230e98af5c8d0f29046a3
permissions -rw-r--r--
Fixing bug 604262. Fix crash in nsImageLoadingContent::OnStartDecode(). r=mrbkap a=dveditz

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>
"use strict";

var f2;

function newIframe()
{
  var f = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
  f.setAttributeNS(null, "src", "631421.png");
  document.body.appendChild(f);
  return f;
}

function b1()
{
  void newIframe();
  f2 = newIframe();
  setTimeout(b2, 0);
}

function b2()
{
  document.body.removeChild(f2);
  document.documentElement.removeAttribute("class");
}

</script>
</head>

<body onload="b1();"></body>
</html>