4 https://bugzilla.mozilla.org/show_bug.cgi?id=856384
8 <title>Test for Bug
856384</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=856384">Mozilla Bug
856384</a>
15 <div id=
"content" style=
"display: none">
17 <iframe name=
"constructor" src=
"about:blank"></iframe>
19 <script type=
"application/javascript">
20 SimpleTest.waitForExplicitFinish();
24 is(Object.isExtensible(window), true,
"Windows are extensible by default");
28 Object.preventExtensions(window);
33 is(e instanceof TypeError, true,
34 "preventExtensions(window) should throw a TypeError, instead got: " + e);
35 is(Object.isExtensible(window), true,
36 'Windows are extensible after an extensibility
"change" attempt');
42 window.addEventListener(
"load", run);