From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- remote/components/RemoteAgent.sys.mjs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'remote/components/RemoteAgent.sys.mjs') diff --git a/remote/components/RemoteAgent.sys.mjs b/remote/components/RemoteAgent.sys.mjs index c16b8c44b8..4807a8a0e0 100644 --- a/remote/components/RemoteAgent.sys.mjs +++ b/remote/components/RemoteAgent.sys.mjs @@ -9,6 +9,8 @@ ChromeUtils.defineESModuleGetters(lazy, { Deferred: "chrome://remote/content/shared/Sync.sys.mjs", HttpServer: "chrome://remote/content/server/httpd.sys.mjs", Log: "chrome://remote/content/shared/Log.sys.mjs", + RecommendedPreferences: + "chrome://remote/content/shared/RecommendedPreferences.sys.mjs", WebDriverBiDi: "chrome://remote/content/webdriver-bidi/WebDriverBiDi.sys.mjs", }); @@ -31,7 +33,6 @@ const DEFAULT_PORT = 9222; const isRemote = Services.appinfo.processType == Services.appinfo.PROCESS_TYPE_CONTENT; - class RemoteAgentParentProcess { #allowHosts; #allowOrigins; @@ -166,7 +167,7 @@ class RemoteAgentParentProcess { handle(cmdLine) { // remote-debugging-port has to be consumed in nsICommandLineHandler:handle - // to avoid issues on macos. See Marionette.jsm::handle() for more details. + // to avoid issues on macos. See Marionette.sys.mjs::handle() for more details. // TODO: remove after Bug 1724251 is fixed. try { cmdLine.handleFlagWithParam("remote-debugging-port", false); @@ -394,6 +395,9 @@ class RemoteAgentParentProcess { Services.obs.addObserver(this, "mail-idle-startup-tasks-finished"); Services.obs.addObserver(this, "quit-application"); + // Apply the common set of preferences for all supported protocols + lazy.RecommendedPreferences.applyPreferences(); + // With Bug 1717899 we will extend the lifetime of the Remote Agent to // the whole Firefox session, which will be identical to Marionette. For // now prevent logging if the component is not enabled during startup. @@ -484,12 +488,6 @@ class RemoteAgentParentProcess { } class RemoteAgentContentProcess { - #classID; - - constructor() { - this.#classID = Components.ID("{8f685a9d-8181-46d6-a71d-869289099c6d}"); - } - get running() { let reply = Services.cpmm.sendSyncMessage("RemoteAgent:IsRunning"); if (!reply.length) { -- cgit v1.2.3