toolkit/mozapps/extensions/test/xpinstall/bug645699.html
author Jason Orendorff <jorendorff@mozilla.com>
Wed, 13 Jun 2012 03:11:18 -0500
changeset 96559 2ddb6278d1de06de58d9d182e2e0a701cc75747a
parent 67616 3578f5b22f6b1af5225ac390d0c8e029c8d1d279
child 284311 3e5b6df276a9a20fe7b3655656e62a09bc46aaa9
permissions -rw-r--r--
Bug 750307 - "Assertion failure: isBoolean()" in RegExpObject::ignoreCase after redefining nonconfigurable data property. r=Waldo. Second landing, test change rs=bholley on IRC.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>
<title>InstallTrigger tests</title>
<script type="text/javascript">
function startInstall() {
  var whiteUrl = "https://example.org/";

  try {
    Object.defineProperty(window, "location", { value : { href : whiteUrl }	});
    throw new Error("Object.defineProperty(window, 'location', ...) should have thrown");
  } catch (exc) {
    if (!(exc instanceof TypeError))
      throw exc;
  }
  Object.defineProperty(document, "documentURIObject", { spec : { href : whiteUrl }	});

  InstallTrigger.install({
    "Unsigned XPI": "http://example.com/browser/toolkit/mozapps/extensions/test/xpinstall/unsigned.xpi"
  });
}
</script>
</head>
<body onload="startInstall()">
<p>InstallTrigger tests</p>
</body>
</html>