blob: 5c36470ded50940b368768fb20dfccb9d76647b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Tests referrer on context menu navigation - open link in new window.
// Selects "open link in new window" from the context menu.
function startNewWindowTestCase(aTestNumber) {
info(
"browser_referrer_open_link_in_window: " +
getReferrerTestDescription(aTestNumber)
);
contextMenuOpened(gTestWindow, "testlink").then(function (aContextMenu) {
newWindowOpened().then(function (aNewWindow) {
BrowserTestUtils.firstBrowserLoaded(aNewWindow, false).then(function () {
checkReferrerAndStartNextTest(
aTestNumber,
aNewWindow,
null,
startNewWindowTestCase
);
});
});
doContextMenuCommand(gTestWindow, aContextMenu, "context-openlink");
});
}
function test() {
requestLongerTimeout(10); // slowwww shutdown on e10s
startReferrerTest(startNewWindowTestCase);
}
|