forked from mirrors/gecko-dev
MozReview-Commit-ID: JOC1330iFnh --HG-- extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
20 lines
512 B
JavaScript
20 lines
512 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");
|
|
}
|