Skip to content

Commit

Permalink
Bug 1776080 - Fix browser_save_filenames.js to work with parent contr…
Browse files Browse the repository at this point in the history
…olled navigation. r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D150051
  • Loading branch information
amccreight committed Jun 27, 2022
1 parent 1b2da84 commit 8381615
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions uriloader/exthandler/tests/mochitest/browser_save_filenames.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,12 @@ add_task(async function saveas_files() {
let list = await Downloads.getList(Downloads.PUBLIC);
let downloadFinishedPromise = promiseDownloadFinished(list);

await BrowserTestUtils.openNewForegroundTab(
await BrowserTestUtils.openNewForegroundTab({
gBrowser,
expectedItems[idx].url
);
opening: expectedItems[idx].url,
waitForLoad: false,
waitForStateStop: true,
});

let download = await downloadFinishedPromise;

Expand All @@ -482,10 +484,12 @@ add_task(async function saveas_files() {
continue;
}

await BrowserTestUtils.openNewForegroundTab(
await BrowserTestUtils.openNewForegroundTab({
gBrowser,
expectedItems[idx].url
);
opening: expectedItems[idx].url,
waitForLoad: false,
waitForStateStop: true,
});
}

let filename = await new Promise(resolve => {
Expand Down

0 comments on commit 8381615

Please sign in to comment.