summaryrefslogtreecommitdiffstats
path: root/testing/specialpowers/content/SpecialPowersChild.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/specialpowers/content/SpecialPowersChild.sys.mjs')
-rw-r--r--testing/specialpowers/content/SpecialPowersChild.sys.mjs46
1 files changed, 9 insertions, 37 deletions
diff --git a/testing/specialpowers/content/SpecialPowersChild.sys.mjs b/testing/specialpowers/content/SpecialPowersChild.sys.mjs
index 20afe12d39..ed972e4315 100644
--- a/testing/specialpowers/content/SpecialPowersChild.sys.mjs
+++ b/testing/specialpowers/content/SpecialPowersChild.sys.mjs
@@ -69,7 +69,7 @@ function SPConsoleListener(callback, contentWindow) {
SPConsoleListener.prototype = {
// Overload the observe method for both nsIConsoleListener and nsIObserver.
// The topic will be null for nsIConsoleListener.
- observe(msg, topic) {
+ observe(msg) {
let m = {
message: msg.message,
errorMessage: null,
@@ -158,12 +158,11 @@ export class SpecialPowersChild extends JSWindowActorChild {
this.nondeterministicGetWeakMapKeys,
this.snapshotWindowWithOptions,
this.snapshotWindow,
- this.snapshotRect,
- this.getDOMRequestService
+ this.snapshotRect
);
}
- observe(aSubject, aTopic, aData) {
+ observe() {
// Ignore the "{chrome/content}-document-global-created" event. It
// is only observed to force creation of the actor.
}
@@ -1090,7 +1089,7 @@ export class SpecialPowersChild extends JSWindowActorChild {
}
return val;
}
- _getPref(prefName, prefType, { defaultValue }) {
+ _getPref(prefName, prefType) {
switch (prefType) {
case "BOOL":
return Services.prefs.getBoolPref(prefName);
@@ -1133,7 +1132,7 @@ export class SpecialPowersChild extends JSWindowActorChild {
removeAutoCompletePopupEventListener(window, eventname, listener) {
this._getAutoCompletePopup(window).removeEventListener(eventname, listener);
}
- getFormFillController(window) {
+ getFormFillController() {
return Cc["@mozilla.org/satchel/form-fill-controller;1"].getService(
Ci.nsIFormFillController
);
@@ -1451,13 +1450,6 @@ export class SpecialPowersChild extends JSWindowActorChild {
return this.getIntPref("fission.webContentIsolationStrategy");
}
- addSystemEventListener(target, type, listener, useCapture) {
- Services.els.addSystemEventListener(target, type, listener, useCapture);
- }
- removeSystemEventListener(target, type, listener, useCapture) {
- Services.els.removeSystemEventListener(target, type, listener, useCapture);
- }
-
// helper method to check if the event is consumed by either default group's
// event listener or system group's event listener.
defaultPreventedInAnyGroup(event) {
@@ -1466,26 +1458,6 @@ export class SpecialPowersChild extends JSWindowActorChild {
return event.defaultPrevented;
}
- getDOMRequestService() {
- var serv = Services.DOMRequest;
- var res = {};
- var props = [
- "createRequest",
- "createCursor",
- "fireError",
- "fireSuccess",
- "fireDone",
- "fireDetailedError",
- ];
- for (var i in props) {
- let prop = props[i];
- res[prop] = function () {
- return serv[prop].apply(serv, arguments);
- };
- }
- return Cu.cloneInto(res, this.contentWindow, { cloneFunctions: true });
- }
-
addCategoryEntry(category, entry, value, persists, replace) {
Services.catMan.addCategoryEntry(category, entry, value, persists, replace);
}
@@ -1948,11 +1920,11 @@ export class SpecialPowersChild extends JSWindowActorChild {
return this.sendQuery("SPRemoveServiceWorkerDataForExampleDomain", {});
}
- cleanUpSTSData(origin, flags) {
+ cleanUpSTSData(origin) {
return this.sendQuery("SPCleanUpSTSData", { origin });
}
- async requestDumpCoverageCounters(cb) {
+ async requestDumpCoverageCounters() {
// We want to avoid a roundtrip between child and parent.
if (!lazy.PerTestCoverageUtils.enabled) {
return;
@@ -1961,7 +1933,7 @@ export class SpecialPowersChild extends JSWindowActorChild {
await this.sendQuery("SPRequestDumpCoverageCounters", {});
}
- async requestResetCoverageCounters(cb) {
+ async requestResetCoverageCounters() {
// We want to avoid a roundtrip between child and parent.
if (!lazy.PerTestCoverageUtils.enabled) {
return;
@@ -2296,7 +2268,7 @@ SpecialPowersChild.prototype._proxiedObservers = {
);
},
- "specialpowers-service-worker-shutdown": function (aMessage) {
+ "specialpowers-service-worker-shutdown": function () {
Services.obs.notifyObservers(null, "specialpowers-service-worker-shutdown");
},