зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf --HG-- rename : devtools/server/actors/utils/webconsole-listeners.js => devtools/server/actors/webconsole/listeners.js rename : devtools/server/actors/utils/moz.build => devtools/server/actors/webconsole/moz.build rename : devtools/server/actors/utils/webconsole-utils.js => devtools/server/actors/webconsole/utils.js rename : devtools/server/actors/utils/webconsole-worker-listeners.js => devtools/server/actors/webconsole/worker-listeners.js extra : rebase_source : 3222c8ca77a6c38dc2f0ee01adc27264e028a514
This commit is contained in:
Родитель
d4398e95f2
Коммит
253b1895e6
|
@ -25,7 +25,7 @@ loader.lazyGetter(this, "prefBranch", function () {
|
||||||
|
|
||||||
loader.lazyRequireGetter(this, "gcliInit", "devtools/shared/gcli/commands/index");
|
loader.lazyRequireGetter(this, "gcliInit", "devtools/shared/gcli/commands/index");
|
||||||
loader.lazyRequireGetter(this, "util", "gcli/util/util");
|
loader.lazyRequireGetter(this, "util", "gcli/util/util");
|
||||||
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/utils/webconsole-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/webconsole/listeners", true);
|
||||||
loader.lazyRequireGetter(this, "gDevTools", "devtools/client/framework/devtools", true);
|
loader.lazyRequireGetter(this, "gDevTools", "devtools/client/framework/devtools", true);
|
||||||
loader.lazyRequireGetter(this, "gDevToolsBrowser", "devtools/client/framework/devtools-browser", true);
|
loader.lazyRequireGetter(this, "gDevToolsBrowser", "devtools/client/framework/devtools-browser", true);
|
||||||
loader.lazyRequireGetter(this, "nodeConstants", "devtools/shared/dom-node-constants");
|
loader.lazyRequireGetter(this, "nodeConstants", "devtools/shared/dom-node-constants");
|
||||||
|
|
|
@ -9,7 +9,7 @@ var Services = require("Services");
|
||||||
var { ActorPool } = require("devtools/server/actors/common");
|
var { ActorPool } = require("devtools/server/actors/common");
|
||||||
var { TabSources } = require("./utils/TabSources");
|
var { TabSources } = require("./utils/TabSources");
|
||||||
var makeDebugger = require("./utils/make-debugger");
|
var makeDebugger = require("./utils/make-debugger");
|
||||||
var { ConsoleAPIListener } = require("devtools/server/actors/utils/webconsole-listeners");
|
var { ConsoleAPIListener } = require("devtools/server/actors/webconsole/listeners");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
var { assert, update } = DevToolsUtils;
|
var { assert, update } = DevToolsUtils;
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
DIRS += [
|
DIRS += [
|
||||||
'highlighters',
|
'highlighters',
|
||||||
'utils',
|
'utils',
|
||||||
|
'webconsole',
|
||||||
]
|
]
|
||||||
|
|
||||||
DevToolsModules(
|
DevToolsModules(
|
||||||
|
|
|
@ -15,7 +15,4 @@ DevToolsModules(
|
||||||
'stack.js',
|
'stack.js',
|
||||||
'TabSources.js',
|
'TabSources.js',
|
||||||
'walker-search.js',
|
'walker-search.js',
|
||||||
'webconsole-listeners.js',
|
|
||||||
'webconsole-utils.js',
|
|
||||||
'webconsole-worker-listeners.js',
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,20 +25,20 @@ loader.lazyRequireGetter(this, "ServerLoggingListener", "devtools/shared/webcons
|
||||||
loader.lazyRequireGetter(this, "JSPropertyProvider", "devtools/shared/webconsole/js-property-provider", true);
|
loader.lazyRequireGetter(this, "JSPropertyProvider", "devtools/shared/webconsole/js-property-provider", true);
|
||||||
loader.lazyRequireGetter(this, "Parser", "resource://devtools/shared/Parser.jsm", true);
|
loader.lazyRequireGetter(this, "Parser", "resource://devtools/shared/Parser.jsm", true);
|
||||||
loader.lazyRequireGetter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm", true);
|
loader.lazyRequireGetter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm", true);
|
||||||
loader.lazyRequireGetter(this, "addWebConsoleCommands", "devtools/server/actors/utils/webconsole-utils", true);
|
loader.lazyRequireGetter(this, "addWebConsoleCommands", "devtools/server/actors/webconsole/utils", true);
|
||||||
loader.lazyRequireGetter(this, "CONSOLE_WORKER_IDS", "devtools/server/actors/utils/webconsole-utils", true);
|
loader.lazyRequireGetter(this, "CONSOLE_WORKER_IDS", "devtools/server/actors/webconsole/utils", true);
|
||||||
loader.lazyRequireGetter(this, "WebConsoleUtils", "devtools/server/actors/utils/webconsole-utils", true);
|
loader.lazyRequireGetter(this, "WebConsoleUtils", "devtools/server/actors/webconsole/utils", true);
|
||||||
loader.lazyRequireGetter(this, "EnvironmentActor", "devtools/server/actors/environment", true);
|
loader.lazyRequireGetter(this, "EnvironmentActor", "devtools/server/actors/environment", true);
|
||||||
|
|
||||||
// Overwrite implemented listeners for workers so that we don't attempt
|
// Overwrite implemented listeners for workers so that we don't attempt
|
||||||
// to load an unsupported module.
|
// to load an unsupported module.
|
||||||
if (isWorker) {
|
if (isWorker) {
|
||||||
loader.lazyRequireGetter(this, "ConsoleAPIListener", "devtools/server/actors/utils/webconsole-worker-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleAPIListener", "devtools/server/actors/webconsole/worker-listeners", true);
|
||||||
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/utils/webconsole-worker-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/webconsole/worker-listeners", true);
|
||||||
} else {
|
} else {
|
||||||
loader.lazyRequireGetter(this, "ConsoleAPIListener", "devtools/server/actors/utils/webconsole-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleAPIListener", "devtools/server/actors/webconsole/listeners", true);
|
||||||
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/utils/webconsole-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleServiceListener", "devtools/server/actors/webconsole/listeners", true);
|
||||||
loader.lazyRequireGetter(this, "ConsoleReflowListener", "devtools/server/actors/utils/webconsole-listeners", true);
|
loader.lazyRequireGetter(this, "ConsoleReflowListener", "devtools/server/actors/webconsole/listeners", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@ const {Cc, Ci, components} = require("chrome");
|
||||||
const {isWindowIncluded} = require("devtools/shared/layout/utils");
|
const {isWindowIncluded} = require("devtools/shared/layout/utils");
|
||||||
const Services = require("Services");
|
const Services = require("Services");
|
||||||
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
const {CONSOLE_WORKER_IDS, WebConsoleUtils} = require("devtools/server/actors/utils/webconsole-utils");
|
const {CONSOLE_WORKER_IDS, WebConsoleUtils} = require("devtools/server/actors/webconsole/utils");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyServiceGetter(this,
|
XPCOMUtils.defineLazyServiceGetter(this,
|
||||||
"swm",
|
"swm",
|
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||||
|
# vim: set filetype=python:
|
||||||
|
# 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/.
|
||||||
|
|
||||||
|
DevToolsModules(
|
||||||
|
'listeners.js',
|
||||||
|
'utils.js',
|
||||||
|
'worker-listeners.js',
|
||||||
|
)
|
|
@ -4,7 +4,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const { console, ConsoleAPI } = require("resource://gre/modules/Console.jsm");
|
const { console, ConsoleAPI } = require("resource://gre/modules/Console.jsm");
|
||||||
const { ConsoleAPIListener } = require("devtools/server/actors/utils/webconsole-listeners");
|
const { ConsoleAPIListener } = require("devtools/server/actors/webconsole/listeners");
|
||||||
const Services = require("Services");
|
const Services = require("Services");
|
||||||
|
|
||||||
var seenMessages = 0;
|
var seenMessages = 0;
|
||||||
|
|
|
@ -97,7 +97,7 @@ function doConsoleCalls() {
|
||||||
<script class="testbody" type="text/javascript">
|
<script class="testbody" type="text/javascript">
|
||||||
SimpleTest.waitForExplicitFinish();
|
SimpleTest.waitForExplicitFinish();
|
||||||
var {ConsoleServiceListener, ConsoleAPIListener} =
|
var {ConsoleServiceListener, ConsoleAPIListener} =
|
||||||
require("devtools/server/actors/utils/webconsole-listeners");
|
require("devtools/server/actors/webconsole/listeners");
|
||||||
|
|
||||||
let consoleAPIListener, consoleServiceListener;
|
let consoleAPIListener, consoleServiceListener;
|
||||||
let consoleAPICalls = 0;
|
let consoleAPICalls = 0;
|
||||||
|
|
|
@ -18,7 +18,7 @@ SimpleTest.waitForExplicitFinish();
|
||||||
let gState;
|
let gState;
|
||||||
let tests;
|
let tests;
|
||||||
|
|
||||||
let {WebConsoleCommands} = require("devtools/server/actors/utils/webconsole-utils");
|
let {WebConsoleCommands} = require("devtools/server/actors/webconsole/utils");
|
||||||
|
|
||||||
function evaluateJS(input) {
|
function evaluateJS(input) {
|
||||||
return new Promise((resolve) => gState.client.evaluateJS(input, resolve));
|
return new Promise((resolve) => gState.client.evaluateJS(input, resolve));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче