mirror of
https://github.com/Feodor2/Mypal68.git
synced 2025-06-18 23:05:40 -04:00
29 lines
570 B
JavaScript
29 lines
570 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
Services.ww.registerNotification(function notification(
|
|
aSubject,
|
|
aTopic,
|
|
aData
|
|
) {
|
|
if (aTopic == "domwindowopened") {
|
|
Services.ww.unregisterNotification(notification);
|
|
|
|
ok(true, "duplicateTabIn opened a new window");
|
|
|
|
whenDelayedStartupFinished(
|
|
aSubject,
|
|
function() {
|
|
executeSoon(function() {
|
|
aSubject.close();
|
|
finish();
|
|
});
|
|
},
|
|
false
|
|
);
|
|
}
|
|
});
|
|
|
|
duplicateTabIn(gBrowser.selectedTab, "window");
|
|
}
|