8 "about:sessionrestore",
9 "about:privatebrowsing",
13 var
tab = gBrowser.addTab();
16 if (uri ==
"about:blank") {
19 let
browser = tab.linkedBrowser;
20 browser.addEventListener(
"load",
function () {
21 browser.removeEventListener(
"load",
arguments.callee,
true);
28 var
win = gBrowser.replaceTabWithWindow(tab);
29 win.addEventListener(
"load",
function () {
30 win.removeEventListener(
"load",
arguments.callee,
false);
32 var _delayedStartup = win.delayedStartup;
35 win.delayedStartup = _delayedStartup;
37 is(win.gBrowser.currentURI.spec, uri, uri +
": uri loaded in detached tab");
38 is(win.document.activeElement, win.gBrowser.selectedBrowser, uri +
": browser is focused");
39 is(win.gURLBar.value,
"", uri +
": urlbar is empty");
40 ok(win.gURLBar.emptyText, uri +
": emptytext is present");
41 ok(win.gURLBar.hasAttribute(
"isempty"), uri +
": emptytext is displayed");
return!aWindow arguments!aWindow arguments[0]
function delayedStartup(isLoadingBlank, mustLoadSidebar)