Bug 1323466 - Lazy load protocol.js from actors/common.js to prevent loading it in parent process. r=jryans
MozReview-Commit-ID: 1NtALPw7N6k
--- a/devtools/server/actors/common.js
+++ b/devtools/server/actors/common.js
@@ -2,17 +2,17 @@
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* 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/. */
"use strict";
const promise = require("promise");
-const { method } = require("devtools/shared/protocol");
+loader.lazyRequireGetter(this, "method", "devtools/shared/protocol", true);
/**
* Creates "registered" actors factory meant for creating another kind of
* factories, ObservedActorFactory, during the call to listTabs.
* These factories live in DebuggerServer.{tab|global}ActorFactories.
*
* These actors only exposes:
* - `name` string attribute used to match actors by constructor name