44 let
testPage =
'data:text/html,<body><button onblur="this.parentNode.removeChild(this);"><script>document.body.firstChild.focus();</script></body>';
50 let testTab = gBrowser.addTab();
51 gBrowser.selectedTab = testTab;
52 let
testBrowser = gBrowser.getBrowserForTab(testTab);
55 testBrowser.addEventListener(
"load",
function()
setTimeout(
function() {
59 let emptyTab = gBrowser.addTab();
60 gBrowser.selectedTab = emptyTab;
61 gBrowser.removeCurrentTab();
62 gBrowser.selectedTab = testTab;
65 is(document.commandDispatcher.focusedWindow,
window.content,
66 "content window is focused");
67 gBrowser.removeCurrentTab();
72 testBrowser.contentWindow.location =
testPage;
aWindow setTimeout(function(){_this.restoreHistory(aWindow, aTabs, aTabData, aIdMap);}, 0)