summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/downloads/tests/browser
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/downloads/tests/browser')
-rw-r--r--toolkit/mozapps/downloads/tests/browser/browser_save_wrongextension.js2
-rw-r--r--toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_delayedbutton.js6
-rw-r--r--toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_dialog_layout.js4
3 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/mozapps/downloads/tests/browser/browser_save_wrongextension.js b/toolkit/mozapps/downloads/tests/browser/browser_save_wrongextension.js
index 83e668076a..ad83bb3689 100644
--- a/toolkit/mozapps/downloads/tests/browser/browser_save_wrongextension.js
+++ b/toolkit/mozapps/downloads/tests/browser/browser_save_wrongextension.js
@@ -8,7 +8,7 @@ let url =
"data:text/html,<a id='link' href='http://localhost:8000/thefile.js'>Link</a>";
let MockFilePicker = SpecialPowers.MockFilePicker;
-MockFilePicker.init(window);
+MockFilePicker.init(window.browsingContext);
let httpServer = null;
diff --git a/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_delayedbutton.js b/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_delayedbutton.js
index 06a5a9d238..9bd494e245 100644
--- a/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_delayedbutton.js
+++ b/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_delayedbutton.js
@@ -13,14 +13,14 @@ let UCTObserver = {
opened: Promise.withResolvers(),
closed: Promise.withResolvers(),
- observe(aSubject, aTopic, aData) {
+ observe(aSubject, aTopic) {
let win = aSubject;
switch (aTopic) {
case "domwindowopened":
win.addEventListener(
"load",
- function onLoad(event) {
+ function onLoad() {
// Let the dialog initialize
SimpleTest.executeSoon(function () {
UCTObserver.opened.resolve(win);
@@ -40,7 +40,7 @@ let UCTObserver = {
};
function waitDelay(delay) {
- return new Promise((resolve, reject) => {
+ return new Promise(resolve => {
/* eslint-disable mozilla/no-arbitrary-setTimeout */
window.setTimeout(resolve, delay);
});
diff --git a/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_dialog_layout.js b/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_dialog_layout.js
index 6755c1aadb..e42951696d 100644
--- a/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_dialog_layout.js
+++ b/toolkit/mozapps/downloads/tests/browser/browser_unknownContentType_dialog_layout.js
@@ -38,14 +38,14 @@ add_task(async function test_unknownContentType_dialog_layout() {
opened: Promise.withResolvers(),
closed: Promise.withResolvers(),
- observe(aSubject, aTopic, aData) {
+ observe(aSubject, aTopic) {
let win = aSubject;
switch (aTopic) {
case "domwindowopened":
win.addEventListener(
"load",
- function onLoad(event) {
+ function onLoad() {
// Let the dialog initialize
SimpleTest.executeSoon(function () {
UCTObserver.opened.resolve(win);