Skip to content

Commit

Permalink
Bug 1690468 - [remote] Move Remote Agent component related files to c…
Browse files Browse the repository at this point in the history
…omponents/. r=remote-protocol-reviewers,jgraham,mak

Differential Revision: https://phabricator.services.mozilla.com/D104159
  • Loading branch information
whimboo committed Feb 8, 2021
1 parent a82f8b1 commit d461492
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 12 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Classes = [
{
"cid": "{8f685a9d-8181-46d6-a71d-869289099c6d}",
"contract_ids": ["@mozilla.org/remote/agent;1"],
"jsm": "chrome://remote/content/RemoteAgent.jsm",
"jsm": "chrome://remote/content/components/RemoteAgent.jsm",
"constructor": "RemoteAgentFactory",
},
{
Expand Down
8 changes: 8 additions & 0 deletions remote/components/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

XPIDL_MODULE = "remote"
XPIDL_SOURCES += ["nsIRemoteAgent.idl"]

XPCOM_MANIFESTS += ["components.conf"]
File renamed without changes.
2 changes: 1 addition & 1 deletion remote/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

remote.jar:
% content remote %content/
content/RemoteAgent.jsm (RemoteAgent.jsm)
content/components/RemoteAgent.jsm (components/RemoteAgent.jsm)

content/Connection.jsm (Connection.jsm)
content/Error.jsm (Error.jsm)
Expand Down
5 changes: 1 addition & 4 deletions remote/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += [
"components",
"startup",
"test",
]

XPCOM_MANIFESTS += ["components.conf"]
JAR_MANIFESTS += ["jar.mn"]

XPIDL_MODULE = "remote"
XPIDL_SOURCES += ["nsIRemoteAgent.idl"]

with Files("**"):
BUG_COMPONENT = ("Remote Protocol", "Agent")
with Files("domains/**/Emulation.jsm"):
Expand Down
2 changes: 1 addition & 1 deletion remote/targets/MainProcessTarget.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { MainProcessSession } = ChromeUtils.import(
"chrome://remote/content/sessions/MainProcessSession.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
"chrome://remote/content/components/RemoteAgent.jsm"
);

/**
Expand Down
2 changes: 1 addition & 1 deletion remote/targets/TabTarget.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
"chrome://remote/content/components/RemoteAgent.jsm"
);

XPCOMUtils.defineLazyServiceGetter(
Expand Down
6 changes: 3 additions & 3 deletions remote/test/browser/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");

const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/components/RemoteAgent.jsm"
);
const { RemoteAgentError } = ChromeUtils.import(
"chrome://remote/content/Error.jsm"
);
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
);

const TIMEOUT_MULTIPLIER = SpecialPowers.isDebugBuild ? 4 : 1;
const TIMEOUT_EVENTS = 1000 * TIMEOUT_MULTIPLIER;
Expand Down
2 changes: 1 addition & 1 deletion toolkit/modules/Troubleshoot.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ if (AppConstants.MOZ_SANDBOX) {
if (AppConstants.ENABLE_REMOTE_AGENT) {
dataProviders.remoteAgent = function remoteAgent(done) {
const { RemoteAgent } = ChromeUtils.import(
"chrome://remote/content/RemoteAgent.jsm"
"chrome://remote/content/components/RemoteAgent.jsm"
);
const { listening, scheme, host, port } = RemoteAgent;
let url = "";
Expand Down

0 comments on commit d461492

Please sign in to comment.