mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
f9f5914039
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36041 --HG-- extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
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");
|
|
}
|