mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-07 06:54:33 +00:00
21 lines
506 B
JavaScript
21 lines
506 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");
|
|
}
|