summaryrefslogtreecommitdiffstats
path: root/toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js')
-rw-r--r--toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js b/toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js
index f32216010b..87bf94a59b 100644
--- a/toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js
+++ b/toolkit/components/remotebrowserutils/tests/browser/browser_documentChannel.js
@@ -37,14 +37,14 @@ const EXTENSION_DATA = {
async background() {
browser.test.log("background script running");
browser.webRequest.onAuthRequired.addListener(
- async details => {
+ async () => {
browser.test.log("webRequest onAuthRequired");
// A blocking request that returns a promise exercises a codepath that
// sets the notificationCallbacks on the channel to a JS object that we
// can't do directly QueryObject on with expected results.
// This triggered a crash which was fixed in bug 1528188.
- return new Promise((resolve, reject) => {
+ return new Promise(resolve => {
setTimeout(resolve, 0);
});
},