6 win.addEventListener(
"load",
function () {
7 win.removeEventListener(
"load",
arguments.callee,
false);
9 win.content.addEventListener(
"focus",
function () {
10 win.content.removeEventListener(
"focus",
arguments.callee,
false);
12 win.gBrowser.selectedTab.addEventListener(
"TabClose",
function () {
13 ok(
false,
"shouldn't have gotten the TabClose event for the last tab");
16 EventUtils.synthesizeKey(
"w", { accelKey:
true },
win);
18 ok(win.closed,
"accel+w closed the window immediately");
return!aWindow arguments!aWindow arguments[0]