2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"chrome://mochikit/content/tests/SimpleTest/test.css"
6 https://bugzilla.mozilla.org/show_bug.cgi?id=429954
8 <window title=
"Mozilla Bug 429954"
9 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
11 <script type=
"application/javascript"
12 src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
14 <body xmlns=
"http://www.w3.org/1999/xhtml">
15 <div id=
"content" style=
"display: none">
22 <script class=
"testbody" type=
"application/javascript">
25 SimpleTest.waitForExplicitFinish();
27 SimpleTest.waitForFocus(function () {
28 var wm = Components.classes[
"@mozilla.org/appshell/window-mediator;1"].
29 getService(Components.interfaces.nsIWindowMediator);
30 var win = wm.getMostRecentWindow(
"navigator:browser");
32 var maxX = win.screenX, maxY = win.screenY;
33 var maxWidth = win.outerWidth, maxHeight = win.outerHeight;
36 window.open(
"window_bug429954.xul",
"_blank",
37 "chrome,resizable,width=" + maxWidth +
",height=" + maxHeight +
38 "screenX=" + maxX +
"screenY=" + maxY);