Bug 1620248 - [devtools] Rename content-process.jsm init method to initContentProcessTarget. r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D94373
This commit is contained in:
Alexandre Poirot 2020-10-22 10:02:47 +00:00
Родитель 01c64de783
Коммит fe4803309b
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -215,10 +215,10 @@ class ContentProcessStartup {
const prefix =
parentConnectionPrefix + "contentProcess" + Services.appinfo.processID;
//TODO: probably merge content-process.jsm with this module
const { init } = ChromeUtils.import(
const { initContentProcessTarget } = ChromeUtils.import(
"resource://devtools/server/startup/content-process.jsm"
);
const { actor, connection } = init({
const { actor, connection } = initContentProcessTarget({
target: Services.cpmm,
data: {
watcherActorID,

Просмотреть файл

@ -19,10 +19,10 @@ const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
function onInit(message) {
// Only reply if we are in a real content process
if (Services.appinfo.processType == Services.appinfo.PROCESS_TYPE_CONTENT) {
const { init } = ChromeUtils.import(
const { initContentProcessTarget } = ChromeUtils.import(
"resource://devtools/server/startup/content-process.jsm"
);
init(message);
initContentProcessTarget(message);
}
}

Просмотреть файл

@ -13,8 +13,8 @@
* The actual server startup itself is in this JSM so that code can be cached.
*/
/* exported init */
const EXPORTED_SYMBOLS = ["init"];
/* exported initContentProcessTarget */
const EXPORTED_SYMBOLS = ["initContentProcessTarget"];
let gLoader;
@ -63,7 +63,7 @@ function setupServer(mm) {
return gLoader;
}
function init(msg) {
function initContentProcessTarget(msg) {
const mm = msg.target;
const prefix = msg.data.prefix;
const watcherActorID = msg.data.watcherActorID;