summaryrefslogtreecommitdiffstats
path: root/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html')
-rw-r--r--devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html b/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html
index 4065aabc2b..06b6281588 100644
--- a/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html
+++ b/devtools/client/framework/test/browser_toolbox_options_enable_serviceworkers_testing.html
@@ -15,9 +15,9 @@
// enabled, so dereferencing it would throw a ReferenceError (which
// is then caught in the .catch() clause).
return window.navigator.serviceWorker.register("serviceworker.js");
- }).then(registration => {
+ }).then(() => {
return {success: true};
- }).catch(error => {
+ }).catch(() => {
return {success: false};
});
}
@@ -36,7 +36,7 @@
function iframeRegisterAndUnregister() {
var frame = window.document.createElement("iframe");
- var promise = new Promise(function(resolve, reject) {
+ var promise = new Promise(function(resolve) {
frame.addEventListener("load", function() {
Promise.resolve().then(_ => {
return frame.contentWindow.navigator.serviceWorker.register("serviceworker.js");
@@ -45,7 +45,7 @@
}).then(_ => {
frame.remove();
resolve({success: true});
- }).catch(error => {
+ }).catch(() => {
resolve({success: false});
});
}, {once: true});