4 <title>Test for Bug
594140</title>
5 <script type=
"text/javascript" src=
"/MochiKit/packed.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <script type=
"text/javascript" src=
"/tests/SimpleTest/WindowSnapshot.js"></script>
8 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=594140">Mozilla Bug
594140</a>
15 <script class=
"testbody" type=
"text/javascript">
16 netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
18 window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
19 .getInterface(Components.interfaces.nsIWebNavigation)
20 .QueryInterface(Components.interfaces.nsIDocShell)
22 .QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
25 var w = window.open(
"about:blank",
"",
"width=200,height=100");
26 is(w.innerWidth,
400,
"wrong width");
27 is(w.innerHeight,
200,
"wrong height");