mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
503 B
JavaScript
21 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");
|
||
|
|
||
|
aSubject.addEventListener("load", function () {
|
||
|
executeSoon(function () {
|
||
|
aSubject.close();
|
||
|
finish();
|
||
|
});
|
||
|
}, false);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
duplicateTabIn(gBrowser.selectedTab, "window");
|
||
|
}
|