diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /remote/components/RemoteAgent.sys.mjs | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz firefox-adbda400be353e676059e335c3c0aaf99e719475.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'remote/components/RemoteAgent.sys.mjs')
-rw-r--r-- | remote/components/RemoteAgent.sys.mjs | 14 |
1 files changed, 6 insertions, 8 deletions
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) { |