forked from mirrors/gecko-dev
MozReview-Commit-ID: 2ZvTiZDHchz --HG-- extra : rebase_source : db6482481b7338df491afd6f6fd376eccec84d7e
20 lines
503 B
JavaScript
20 lines
503 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
Services.ww.registerNotification(function(aSubject, aTopic, aData) {
|
|
if (aTopic == "domwindowopened") {
|
|
Services.ww.unregisterNotification(arguments.callee);
|
|
|
|
ok(true, "duplicateTabIn opened a new window");
|
|
|
|
whenDelayedStartupFinished(aSubject, function() {
|
|
executeSoon(function() {
|
|
aSubject.close();
|
|
finish();
|
|
});
|
|
}, false);
|
|
}
|
|
});
|
|
|
|
duplicateTabIn(gBrowser.selectedTab, "window");
|
|
}
|