summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell/head_addons.js')
-rw-r--r--toolkit/mozapps/extensions/test/xpcshell/head_addons.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/head_addons.js b/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
index 23614cdb2a..2f26d940f0 100644
--- a/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
@@ -935,7 +935,7 @@ class EventChecker {
return this.checkAddonEvent("onInstalled", addon);
}
- onUninstalling(addon, requiresRestart) {
+ onUninstalling(addon) {
return this.checkAddonEvent("onUninstalling", addon);
}
@@ -1033,7 +1033,7 @@ class EventChecker {
});
}
- onInstallEnded(install, newAddon) {
+ onInstallEnded(install) {
return this.checkInstall("onInstallEnded", install, {
state: "STATE_INSTALLED",
error: 0,
@@ -1221,3 +1221,10 @@ async function installBuiltinExtension(extensionData, waitForStartup = true) {
}
return wrapper;
}
+
+function useAMOStageCert() {
+ // NOTE: add_task internally calls add_test which mutate the add_task properties object,
+ // and so we should not reuse the same object as add_task options passed to multiple
+ // add_task calls.
+ return { pref_set: [["xpinstall.signatures.dev-root", true]] };
+}