mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop
This commit is contained in:
parent
8f5c8e2002
commit
dea025001d
@ -12,7 +12,7 @@ const { Cc, Ci, Cu, Cr } = require("chrome");
|
|||||||
const self = require("../self");
|
const self = require("../self");
|
||||||
const prefs = require("../preferences/service");
|
const prefs = require("../preferences/service");
|
||||||
const { merge } = require("../util/object");
|
const { merge } = require("../util/object");
|
||||||
const { ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const { ConsoleAPI } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
|
|
||||||
const DEFAULT_LOG_LEVEL = "error";
|
const DEFAULT_LOG_LEVEL = "error";
|
||||||
const ADDON_LOG_LEVEL_PREF = "extensions." + self.id + ".sdk.console.logLevel";
|
const ADDON_LOG_LEVEL_PREF = "extensions." + self.id + ".sdk.console.logLevel";
|
||||||
|
@ -798,7 +798,7 @@ function Loader(options) {
|
|||||||
globals: {
|
globals: {
|
||||||
get console() {
|
get console() {
|
||||||
// Import Console.jsm from here to prevent loading it until someone uses it
|
// Import Console.jsm from here to prevent loading it until someone uses it
|
||||||
let { ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
let { ConsoleAPI } = Cu.import("resource://gre/modules/Console.jsm");
|
||||||
let console = new ConsoleAPI({
|
let console = new ConsoleAPI({
|
||||||
consoleID: options.id ? "addon/" + options.id : ""
|
consoleID: options.id ? "addon/" + options.id : ""
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
const { utils: Cu } = Components;
|
const { utils: Cu } = Components;
|
||||||
const { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
const { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
const LoaderModule = Cu.import("resource://gre/modules/commonjs/toolkit/loader.js", {}).Loader;
|
const LoaderModule = Cu.import("resource://gre/modules/commonjs/toolkit/loader.js", {}).Loader;
|
||||||
const { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var {
|
var {
|
||||||
Loader, main, Module, Require, unload
|
Loader, main, Module, Require, unload
|
||||||
} = LoaderModule;
|
} = LoaderModule;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
var gDebug = false;
|
var gDebug = false;
|
||||||
try {
|
try {
|
||||||
|
@ -64,7 +64,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
|||||||
"resource://gre/modules/Task.jsm");
|
"resource://gre/modules/Task.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "DownloadsLogger", () => {
|
XPCOMUtils.defineLazyGetter(this, "DownloadsLogger", () => {
|
||||||
let { ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let { ConsoleAPI } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevelPref: "browser.download.loglevel",
|
maxLogLevelPref: "browser.download.loglevel",
|
||||||
prefix: "Downloads"
|
prefix: "Downloads"
|
||||||
|
@ -7,7 +7,7 @@ const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "LoopStorage",
|
XPCOMUtils.defineLazyModuleGetter(this, "LoopStorage",
|
||||||
"resource:///modules/loop/LoopStorage.jsm");
|
"resource:///modules/loop/LoopStorage.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "Promise",
|
XPCOMUtils.defineLazyModuleGetter(this, "Promise",
|
||||||
|
@ -182,7 +182,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "gWM",
|
|||||||
|
|
||||||
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
||||||
XPCOMUtils.defineLazyGetter(this, "log", () => {
|
XPCOMUtils.defineLazyGetter(this, "log", () => {
|
||||||
let ConsoleAPI = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {}).ConsoleAPI;
|
let ConsoleAPI = Cu.import("resource://gre/modules/Console.jsm", {}).ConsoleAPI;
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevelPref: PREF_LOG_LEVEL,
|
maxLogLevelPref: PREF_LOG_LEVEL,
|
||||||
prefix: "Loop"
|
prefix: "Loop"
|
||||||
|
@ -38,7 +38,7 @@ Cu.import("resource://gre/modules/AsyncShutdown.jsm");
|
|||||||
Cu.import("resource://gre/modules/Preferences.jsm");
|
Cu.import("resource://gre/modules/Preferences.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "RunState",
|
XPCOMUtils.defineLazyModuleGetter(this, "RunState",
|
||||||
"resource:///modules/sessionstore/RunState.jsm");
|
"resource:///modules/sessionstore/RunState.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "TelemetryStopwatch",
|
XPCOMUtils.defineLazyModuleGetter(this, "TelemetryStopwatch",
|
||||||
|
@ -18,7 +18,7 @@ Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", this);
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||||
"resource://gre/modules/AppConstants.jsm");
|
"resource://gre/modules/AppConstants.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PrivacyFilter",
|
XPCOMUtils.defineLazyModuleGetter(this, "PrivacyFilter",
|
||||||
"resource:///modules/sessionstore/PrivacyFilter.jsm");
|
"resource:///modules/sessionstore/PrivacyFilter.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "SessionStore",
|
XPCOMUtils.defineLazyModuleGetter(this, "SessionStore",
|
||||||
|
@ -13,7 +13,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
// Returns the principal for a given |frame| contained in a given |docShell|.
|
// Returns the principal for a given |frame| contained in a given |docShell|.
|
||||||
function getPrincipalForFrame(docShell, frame) {
|
function getPrincipalForFrame(docShell, frame) {
|
||||||
|
@ -131,7 +131,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "gScreenManager",
|
|||||||
XPCOMUtils.defineLazyServiceGetter(this, "Telemetry",
|
XPCOMUtils.defineLazyServiceGetter(this, "Telemetry",
|
||||||
"@mozilla.org/base/telemetry;1", "nsITelemetry");
|
"@mozilla.org/base/telemetry;1", "nsITelemetry");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "RecentWindow",
|
XPCOMUtils.defineLazyModuleGetter(this, "RecentWindow",
|
||||||
"resource:///modules/RecentWindow.jsm");
|
"resource:///modules/RecentWindow.jsm");
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Cu.import("resource://gre/modules/Promise.jsm", this);
|
|||||||
Cu.import("resource://gre/modules/Task.jsm", this);
|
Cu.import("resource://gre/modules/Task.jsm", this);
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PrivacyFilter",
|
XPCOMUtils.defineLazyModuleGetter(this, "PrivacyFilter",
|
||||||
"resource:///modules/sessionstore/PrivacyFilter.jsm");
|
"resource:///modules/sessionstore/PrivacyFilter.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "TabStateCache",
|
XPCOMUtils.defineLazyModuleGetter(this, "TabStateCache",
|
||||||
|
@ -42,7 +42,7 @@ Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
|||||||
Cu.import("resource://gre/modules/Promise.jsm");
|
Cu.import("resource://gre/modules/Promise.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "SessionFile",
|
XPCOMUtils.defineLazyModuleGetter(this, "SessionFile",
|
||||||
"resource:///modules/sessionstore/SessionFile.jsm");
|
"resource:///modules/sessionstore/SessionFile.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "CrashMonitor",
|
XPCOMUtils.defineLazyModuleGetter(this, "CrashMonitor",
|
||||||
|
@ -73,7 +73,7 @@ const TARGET_SEARCHENGINE_PREFIX = "searchEngine-";
|
|||||||
|
|
||||||
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
||||||
XPCOMUtils.defineLazyGetter(this, "log", () => {
|
XPCOMUtils.defineLazyGetter(this, "log", () => {
|
||||||
let ConsoleAPI = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {}).ConsoleAPI;
|
let ConsoleAPI = Cu.import("resource://gre/modules/Console.jsm", {}).ConsoleAPI;
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevelPref: PREF_LOG_LEVEL,
|
maxLogLevelPref: PREF_LOG_LEVEL,
|
||||||
prefix: "UITour",
|
prefix: "UITour",
|
||||||
|
@ -11,7 +11,7 @@ var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/Task.jsm");
|
Cu.import("resource://gre/modules/Task.jsm");
|
||||||
var { loader, require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
|
var { loader, require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm");
|
||||||
Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
Cu.import("resource://gre/modules/Console.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
||||||
|
|
||||||
loader.lazyRequireGetter(this, "promise");
|
loader.lazyRequireGetter(this, "promise");
|
||||||
|
@ -9,7 +9,7 @@ const {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDe
|
|||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
const {TargetFactory} = require("devtools/client/framework/target");
|
const {TargetFactory} = require("devtools/client/framework/target");
|
||||||
const {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
const {ViewHelpers} = Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm", {});
|
const {ViewHelpers} = Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm", {});
|
||||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
||||||
Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
Cu.import("resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
|
@ -6,7 +6,7 @@ const TEST_BASE_HTTP = "http://example.com/browser/devtools/client/commandline/t
|
|||||||
const TEST_BASE_HTTPS = "https://example.com/browser/devtools/client/commandline/test/";
|
const TEST_BASE_HTTPS = "https://example.com/browser/devtools/client/commandline/test/";
|
||||||
|
|
||||||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var { console } = require("resource://gre/modules/devtools/shared/Console.jsm");
|
var { console } = require("resource://gre/modules/Console.jsm");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
|
||||||
// Import the GCLI test helper
|
// Import the GCLI test helper
|
||||||
|
@ -43,7 +43,7 @@ devtoolsCommandlineHandler.prototype = {
|
|||||||
// Load the browser devtools main module as the loader's main module.
|
// Load the browser devtools main module as the loader's main module.
|
||||||
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
|
Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
|
||||||
let hudservice = require("devtools/client/webconsole/hudservice");
|
let hudservice = require("devtools/client/webconsole/hudservice");
|
||||||
let { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
hudservice.toggleBrowserConsole().then(null, console.error);
|
hudservice.toggleBrowserConsole().then(null, console.error);
|
||||||
} else {
|
} else {
|
||||||
window.focus(); // the Browser Console was already open
|
window.focus(); // the Browser Console was already open
|
||||||
|
@ -14,7 +14,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||||
"resource://gre/modules/Task.jsm");
|
"resource://gre/modules/Task.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
function FontInspector(inspector, window)
|
function FontInspector(inspector, window)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ loader.lazyRequireGetter(this, "TargetFactory", "devtools/client/framework/targe
|
|||||||
loader.lazyRequireGetter(this, "Toolbox", "devtools/client/framework/toolbox", true);
|
loader.lazyRequireGetter(this, "Toolbox", "devtools/client/framework/toolbox", true);
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "CustomizableUI",
|
XPCOMUtils.defineLazyModuleGetter(this, "CustomizableUI",
|
||||||
"resource:///modules/CustomizableUI.jsm");
|
"resource:///modules/CustomizableUI.jsm");
|
||||||
loader.lazyRequireGetter(this, "DebuggerServer", "devtools/server/main", true);
|
loader.lazyRequireGetter(this, "DebuggerServer", "devtools/server/main", true);
|
||||||
|
@ -14,7 +14,7 @@ function scopedCuImport(path) {
|
|||||||
|
|
||||||
const {Services} = scopedCuImport("resource://gre/modules/Services.jsm");
|
const {Services} = scopedCuImport("resource://gre/modules/Services.jsm");
|
||||||
const {gDevTools} = scopedCuImport("resource:///modules/devtools/client/framework/gDevTools.jsm");
|
const {gDevTools} = scopedCuImport("resource:///modules/devtools/client/framework/gDevTools.jsm");
|
||||||
const {console} = scopedCuImport("resource://gre/modules/devtools/shared/Console.jsm");
|
const {console} = scopedCuImport("resource://gre/modules/Console.jsm");
|
||||||
const {ScratchpadManager} = scopedCuImport("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm");
|
const {ScratchpadManager} = scopedCuImport("resource:///modules/devtools/client/scratchpad/scratchpad-manager.jsm");
|
||||||
const {require} = scopedCuImport("resource://gre/modules/devtools/shared/Loader.jsm");
|
const {require} = scopedCuImport("resource://gre/modules/devtools/shared/Loader.jsm");
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ waitForExplicitFinish();
|
|||||||
|
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
var Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
@ -10,7 +10,7 @@ var {utils: Cu, interfaces: Ci, classes: Cc} = Components;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/Task.jsm");
|
Cu.import("resource://gre/modules/Task.jsm");
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
Cu.import("resource://gre/modules/Console.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
||||||
|
|
||||||
const {InplaceEditor, editableItem} = require("devtools/client/shared/inplace-editor");
|
const {InplaceEditor, editableItem} = require("devtools/client/shared/inplace-editor");
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
var Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
var {getInplaceEditorForSpan: inplaceEditor} = require("devtools/client/shared/inplace-editor");
|
var {getInplaceEditorForSpan: inplaceEditor} = require("devtools/client/shared/inplace-editor");
|
||||||
var clipboard = require("sdk/clipboard");
|
var clipboard = require("sdk/clipboard");
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
||||||
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
var { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var { TargetFactory } = require("devtools/client/framework/target");
|
var { TargetFactory } = require("devtools/client/framework/target");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
@ -9,7 +9,7 @@ var { Preferences } = Cu.import("resource://gre/modules/Preferences.jsm", {});
|
|||||||
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
var { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
var { gDevTools } = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
var { console } = require("resource://gre/modules/devtools/shared/Console.jsm");
|
var { console } = require("resource://gre/modules/Console.jsm");
|
||||||
var { TargetFactory } = require("devtools/client/framework/target");
|
var { TargetFactory } = require("devtools/client/framework/target");
|
||||||
var Promise = require("promise");
|
var Promise = require("promise");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
@ -291,7 +291,7 @@ function consoleExecute (console, method, val) {
|
|||||||
ui.on("new-messages", handler);
|
ui.on("new-messages", handler);
|
||||||
jsterm.execute(message);
|
jsterm.execute(message);
|
||||||
|
|
||||||
let { console: c } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let { console: c } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
function handler (event, messages) {
|
function handler (event, messages) {
|
||||||
for (let msg of messages) {
|
for (let msg of messages) {
|
||||||
if (msg.response._message === message) {
|
if (msg.response._message === message) {
|
||||||
|
@ -6,9 +6,8 @@ var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
|||||||
|
|
||||||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
var { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
var { console } = require("resource://gre/modules/devtools/shared/Console.jsm");
|
var { console } = require("resource://gre/modules/Console.jsm");
|
||||||
const RecordingUtils = require("devtools/shared/performance/recording-utils");
|
const RecordingUtils = require("devtools/shared/performance/recording-utils");
|
||||||
|
|
||||||
const PLATFORM_DATA_PREF = "devtools.performance.ui.show-platform-data";
|
const PLATFORM_DATA_PREF = "devtools.performance.ui.show-platform-data";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
var Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const {TargetFactory} = require("devtools/client/framework/target");
|
const {TargetFactory} = require("devtools/client/framework/target");
|
||||||
const {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
||||||
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
const {NetUtil} = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
||||||
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
||||||
const {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
|
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
@ -10,7 +10,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||||||
Cu.import("resource://gre/modules/Task.jsm");
|
Cu.import("resource://gre/modules/Task.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/SideMenuWidget.jsm");
|
||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
||||||
Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
Cu.import("resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
|
@ -20,7 +20,7 @@ const promise = require("promise");
|
|||||||
const Node = Ci.nsIDOMNode;
|
const Node = Ci.nsIDOMNode;
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
||||||
"resource://gre/modules/PluralForm.jsm");
|
"resource://gre/modules/PluralForm.jsm");
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
const {DOMHelpers} = Cu.import("resource:///modules/devtools/client/shared/DOMHelpers.jsm", {});
|
const {DOMHelpers} = Cu.import("resource:///modules/devtools/client/shared/DOMHelpers.jsm", {});
|
||||||
const {Hosts} = require("devtools/client/framework/toolbox-hosts");
|
const {Hosts} = require("devtools/client/framework/toolbox-hosts");
|
||||||
|
@ -14,7 +14,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "EventEmitter",
|
|||||||
"resource://gre/modules/devtools/shared/event-emitter.js");
|
"resource://gre/modules/devtools/shared/event-emitter.js");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["AbstractTreeItem"];
|
this.EXPORTED_SYMBOLS = ["AbstractTreeItem"];
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ XPCOMUtils.defineLazyGetter(this, "VARIABLES_SORTING_ENABLED", () =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
const MAX_LONG_STRING_LENGTH = 200000;
|
const MAX_LONG_STRING_LENGTH = 200000;
|
||||||
const MAX_PROPERTY_ITEMS = 2000;
|
const MAX_PROPERTY_ITEMS = 2000;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var { TargetFactory } = require("devtools/client/framework/target");
|
var { TargetFactory } = require("devtools/client/framework/target");
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
|
@ -28,7 +28,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
|||||||
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const { PrefObserver, PREF_ORIG_SOURCES } = require("devtools/client/styleeditor/utils");
|
const { PrefObserver, PREF_ORIG_SOURCES } = require("devtools/client/styleeditor/utils");
|
||||||
const csscoverage = require("devtools/server/actors/csscoverage");
|
const csscoverage = require("devtools/server/actors/csscoverage");
|
||||||
const console = require("resource://gre/modules/devtools/shared/Console.jsm").console;
|
const console = require("resource://gre/modules/Console.jsm").console;
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
|
|
||||||
const LOAD_ERROR = "error-load";
|
const LOAD_ERROR = "error-load";
|
||||||
|
@ -23,7 +23,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
const PROPERTIES_URL = "chrome://browser/locale/devtools/styleeditor.properties";
|
const PROPERTIES_URL = "chrome://browser/locale/devtools/styleeditor.properties";
|
||||||
|
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const console = require("resource://gre/modules/devtools/shared/Console.jsm").console;
|
const console = require("resource://gre/modules/Console.jsm").console;
|
||||||
const gStringBundle = Services.strings.createBundle(PROPERTIES_URL);
|
const gStringBundle = Services.strings.createBundle(PROPERTIES_URL);
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm",
|
|||||||
const Editor = require("devtools/client/sourceeditor/editor");
|
const Editor = require("devtools/client/sourceeditor/editor");
|
||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
const {CssLogic} = require("devtools/shared/styleinspector/css-logic");
|
const {CssLogic} = require("devtools/shared/styleinspector/css-logic");
|
||||||
const {console} = require("resource://gre/modules/devtools/shared/Console.jsm");
|
const {console} = require("resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/FileUtils.jsm");
|
Cu.import("resource://gre/modules/FileUtils.jsm");
|
||||||
|
@ -9,7 +9,7 @@ const TEST_HOST = 'mochi.test:8888';
|
|||||||
|
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ var promise = require("promise");
|
|||||||
var {editableField, getInplaceEditorForSpan: inplaceEditor} =
|
var {editableField, getInplaceEditorForSpan: inplaceEditor} =
|
||||||
require("devtools/client/shared/inplace-editor");
|
require("devtools/client/shared/inplace-editor");
|
||||||
var {console} =
|
var {console} =
|
||||||
Components.utils.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
Components.utils.import("resource://gre/modules/Console.jsm", {});
|
||||||
|
|
||||||
// All tests are asynchronous
|
// All tests are asynchronous
|
||||||
waitForExplicitFinish();
|
waitForExplicitFinish();
|
||||||
|
@ -12,7 +12,7 @@ Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm");
|
|||||||
|
|
||||||
const { loader, require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const { loader, require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
|
|
||||||
var { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var { EventTarget } = require("sdk/event/target");
|
var { EventTarget } = require("sdk/event/target");
|
||||||
|
|
||||||
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||||
|
@ -21,7 +21,7 @@ add_task(function*() {
|
|||||||
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
||||||
storage.clearEvents();
|
storage.clearEvents();
|
||||||
|
|
||||||
let {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
console.log("bug861338-log-cached");
|
console.log("bug861338-log-cached");
|
||||||
|
|
||||||
let hud = yield HUDService.toggleBrowserConsole();
|
let hud = yield HUDService.toggleBrowserConsole();
|
||||||
@ -153,7 +153,7 @@ add_task(function* testPrefix() {
|
|||||||
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
||||||
storage.clearEvents();
|
storage.clearEvents();
|
||||||
|
|
||||||
let {ConsoleAPI} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let {ConsoleAPI} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevel: "error",
|
maxLogLevel: "error",
|
||||||
prefix: "Log Prefix",
|
prefix: "Log Prefix",
|
||||||
@ -184,7 +184,7 @@ add_task(function* testMaxLogLevelPrefMissing() {
|
|||||||
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
||||||
storage.clearEvents();
|
storage.clearEvents();
|
||||||
|
|
||||||
let {ConsoleAPI} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let {ConsoleAPI} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevel: "error",
|
maxLogLevel: "error",
|
||||||
maxLogLevelPref: "testing.maxLogLevel",
|
maxLogLevelPref: "testing.maxLogLevel",
|
||||||
@ -223,7 +223,7 @@ add_task(function* testMaxLogLevelPref() {
|
|||||||
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
let storage = consoleStorage.getService(Ci.nsIConsoleAPIStorage);
|
||||||
storage.clearEvents();
|
storage.clearEvents();
|
||||||
|
|
||||||
let {ConsoleAPI} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let {ConsoleAPI} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevel: "error",
|
maxLogLevel: "error",
|
||||||
maxLogLevelPref: "testing.maxLogLevel",
|
maxLogLevelPref: "testing.maxLogLevel",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
var {gDevTools} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
|
@ -7,7 +7,7 @@ var Ci = Components.interfaces;
|
|||||||
var Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
const {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
const {DebuggerClient} = require("devtools/shared/client/main");
|
const {DebuggerClient} = require("devtools/shared/client/main");
|
||||||
const {DebuggerServer} = require("devtools/server/main");
|
const {DebuggerServer} = require("devtools/server/main");
|
||||||
|
@ -185,7 +185,7 @@ function tryImport(url) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tryImport("resource://gre/modules/devtools/shared/Loader.jsm");
|
tryImport("resource://gre/modules/devtools/shared/Loader.jsm");
|
||||||
tryImport("resource://gre/modules/devtools/shared/Console.jsm");
|
tryImport("resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
function testExceptionHook(ex) {
|
function testExceptionHook(ex) {
|
||||||
try {
|
try {
|
||||||
|
@ -393,7 +393,7 @@ DevToolsLoader.prototype = {
|
|||||||
};
|
};
|
||||||
// Lazy define console in order to load Console.jsm only when it is used
|
// Lazy define console in order to load Console.jsm only when it is used
|
||||||
XPCOMUtils.defineLazyGetter(this._provider.globals, "console", () => {
|
XPCOMUtils.defineLazyGetter(this._provider.globals, "console", () => {
|
||||||
return Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {}).console;
|
return Cu.import("resource://gre/modules/Console.jsm", {}).console;
|
||||||
});
|
});
|
||||||
|
|
||||||
this._provider.load();
|
this._provider.load();
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
this.EXPORTED_SYMBOLS = [ "template" ];
|
this.EXPORTED_SYMBOLS = [ "template" ];
|
||||||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
|||||||
DevToolsModules(
|
DevToolsModules(
|
||||||
'async-storage.js',
|
'async-storage.js',
|
||||||
'async-utils.js',
|
'async-utils.js',
|
||||||
'Console.jsm',
|
|
||||||
'content-observer.js',
|
'content-observer.js',
|
||||||
'css-color.js',
|
'css-color.js',
|
||||||
'deprecated-sync-thenables.js',
|
'deprecated-sync-thenables.js',
|
||||||
|
@ -9,7 +9,7 @@ const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm
|
|||||||
this.sourceMap = require("source-map");
|
this.sourceMap = require("source-map");
|
||||||
this.acorn = require("acorn/acorn");
|
this.acorn = require("acorn/acorn");
|
||||||
this.prettyFast = require("devtools/shared/pretty-fast/pretty-fast");
|
this.prettyFast = require("devtools/shared/pretty-fast/pretty-fast");
|
||||||
const { console } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
const { console } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
|
|
||||||
// Register a console listener, so console messages don't just disappear
|
// Register a console listener, so console messages don't just disappear
|
||||||
// into the ether.
|
// into the ether.
|
||||||
|
@ -17,8 +17,8 @@ const WARNING_PREF = "devtools.migration.warnings";
|
|||||||
if (Services.prefs.getBoolPref(WARNING_PREF)) {
|
if (Services.prefs.getBoolPref(WARNING_PREF)) {
|
||||||
const { Deprecated } = Cu.import("resource://gre/modules/Deprecated.jsm", {});
|
const { Deprecated } = Cu.import("resource://gre/modules/Deprecated.jsm", {});
|
||||||
Deprecated.warning("This path to Console.jsm is deprecated. Please use " +
|
Deprecated.warning("This path to Console.jsm is deprecated. Please use " +
|
||||||
"Cu.import(\"resource://gre/modules/devtools/shared/" +
|
"Cu.import(\"resource://gre/modules/Console.jsm\") " +
|
||||||
"Console.jsm\") to load this module.",
|
"to load this module.",
|
||||||
"https://bugzil.la/912121");
|
"https://bugzil.la/912121");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ this.EXPORTED_SYMBOLS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const module =
|
const module =
|
||||||
Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
|
|
||||||
for (let symbol of this.EXPORTED_SYMBOLS) {
|
for (let symbol of this.EXPORTED_SYMBOLS) {
|
||||||
this[symbol] = module[symbol];
|
this[symbol] = module[symbol];
|
||||||
|
@ -15,3 +15,8 @@ EXTRA_JS_MODULES.devtools += [
|
|||||||
'Loader.jsm',
|
'Loader.jsm',
|
||||||
'Simulator.jsm',
|
'Simulator.jsm',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Extra compatibility layer for transitional URL used in middle of fx44 cycle
|
||||||
|
EXTRA_JS_MODULES.devtools.shared += [
|
||||||
|
'Console.jsm',
|
||||||
|
]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
const { console, ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm");
|
const { console, ConsoleAPI } = Cu.import("resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
const { ConsoleAPIListener } = require("devtools/shared/webconsole/utils");
|
const { ConsoleAPIListener } = require("devtools/shared/webconsole/utils");
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
|
||||||
|
|
||||||
// This gives logging to stdout for tests
|
// This gives logging to stdout for tests
|
||||||
var {console} = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
var {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
|
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
var WebConsoleUtils = require("devtools/shared/webconsole/utils").Utils;
|
var WebConsoleUtils = require("devtools/shared/webconsole/utils").Utils;
|
||||||
|
@ -18,7 +18,7 @@ let expectedConsoleCalls = [];
|
|||||||
|
|
||||||
function doConsoleCalls(aState)
|
function doConsoleCalls(aState)
|
||||||
{
|
{
|
||||||
let { ConsoleAPI } = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let { ConsoleAPI } = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||||
let console = new ConsoleAPI({
|
let console = new ConsoleAPI({
|
||||||
innerID: window.QueryInterface(Ci.nsIInterfaceRequestor)
|
innerID: window.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||||
.getInterface(Ci.nsIDOMWindowUtils)
|
.getInterface(Ci.nsIDOMWindowUtils)
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
const { require } = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
this.isWorker = false;
|
this.isWorker = false;
|
||||||
this.Promise = Cu.import("resource://gre/modules/Promise.jsm", {}).Promise;
|
this.Promise = Cu.import("resource://gre/modules/Promise.jsm", {}).Promise;
|
||||||
this.console = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {}).console;
|
this.console = Cu.import("resource://gre/modules/Console.jsm", {}).console;
|
||||||
factory.call(
|
factory.call(
|
||||||
this, require, this, { exports: this },
|
this, require, this, { exports: this },
|
||||||
{ Cc, Ci, Cu }, ChromeWorker, null
|
{ Cc, Ci, Cu }, ChromeWorker, null
|
||||||
|
@ -32,7 +32,7 @@ const orientationTypes = new Set(['any', 'natural', 'landscape', 'portrait',
|
|||||||
'portrait-primary', 'portrait-secondary', 'landscape-primary',
|
'portrait-primary', 'portrait-secondary', 'landscape-primary',
|
||||||
'landscape-secondary'
|
'landscape-secondary'
|
||||||
]);
|
]);
|
||||||
Cu.import('resource://gre/modules/devtools/shared/Console.jsm');
|
Cu.import('resource://gre/modules/Console.jsm');
|
||||||
// ValueExtractor is used by the various processors to get values
|
// ValueExtractor is used by the various processors to get values
|
||||||
// from the manifest and to report errors.
|
// from the manifest and to report errors.
|
||||||
Cu.import('resource://gre/modules/ValueExtractor.jsm');
|
Cu.import('resource://gre/modules/ValueExtractor.jsm');
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "ConsoleAPI",
|
XPCOMUtils.defineLazyModuleGetter(this, "ConsoleAPI",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Collection of methods and features specific to using a GeckoView instance.
|
* Collection of methods and features specific to using a GeckoView instance.
|
||||||
|
@ -31,7 +31,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "SelfSupportBackend",
|
|||||||
|
|
||||||
var nativeConsole = console;
|
var nativeConsole = console;
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
const SIMPLETEST_OVERRIDES =
|
const SIMPLETEST_OVERRIDES =
|
||||||
["ok", "is", "isnot", "todo", "todo_is", "todo_isnot", "info", "expectAssertions", "requestCompleteLog"];
|
["ok", "is", "isnot", "todo", "todo_is", "todo_isnot", "info", "expectAssertions", "requestCompleteLog"];
|
||||||
|
@ -13,7 +13,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||||||
Cu.import("resource://gre/modules/Preferences.jsm");
|
Cu.import("resource://gre/modules/Preferences.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
function section(number, url)
|
function section(number, url)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ this.LoginHelper = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
// Create a new instance of the ConsoleAPI so we can control the maxLogLevel with a pref.
|
||||||
let ConsoleAPI = Cu.import("resource://gre/modules/devtools/shared/Console.jsm", {}).ConsoleAPI;
|
let ConsoleAPI = Cu.import("resource://gre/modules/Console.jsm", {}).ConsoleAPI;
|
||||||
let consoleOptions = {
|
let consoleOptions = {
|
||||||
maxLogLevel: getMaxLogLevel(),
|
maxLogLevel: getMaxLogLevel(),
|
||||||
prefix: aLogPrefix,
|
prefix: aLogPrefix,
|
||||||
|
@ -16,7 +16,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "Preferences",
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||||
"resource://gre/modules/Task.jsm");
|
"resource://gre/modules/Task.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "PerformanceStats",
|
XPCOMUtils.defineLazyModuleGetter(this, "PerformanceStats",
|
||||||
"resource://gre/modules/PerformanceStats.jsm");
|
"resource://gre/modules/PerformanceStats.jsm");
|
||||||
XPCOMUtils.defineLazyServiceGetter(this, "Telemetry",
|
XPCOMUtils.defineLazyServiceGetter(this, "Telemetry",
|
||||||
|
@ -185,7 +185,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
||||||
"resource://gre/modules/PlacesUtils.jsm");
|
"resource://gre/modules/PlacesUtils.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
Components.utils.importGlobalProperties(["URL"]);
|
Components.utils.importGlobalProperties(["URL"]);
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ PopupBlocking.init();
|
|||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "console", () => {
|
XPCOMUtils.defineLazyGetter(this, "console", () => {
|
||||||
// Set up console.* for frame scripts.
|
// Set up console.* for frame scripts.
|
||||||
let Console = Components.utils.import("resource://gre/modules/devtools/shared/Console.jsm", {});
|
let Console = Components.utils.import("resource://gre/modules/Console.jsm", {});
|
||||||
return new Console.ConsoleAPI();
|
return new Console.ConsoleAPI();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "FinalizationWitnessService",
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "PromiseUtils",
|
XPCOMUtils.defineLazyModuleGetter(this, "PromiseUtils",
|
||||||
"resource://gre/modules/PromiseUtils.jsm");
|
"resource://gre/modules/PromiseUtils.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
XPCOMUtils.defineLazyModuleGetter(this, "console",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
|
|
||||||
// Regular expression used by isInvalidBoundLikeQuery
|
// Regular expression used by isInvalidBoundLikeQuery
|
||||||
var likeSqlRegex = /\bLIKE\b\s(?![@:?])/i;
|
var likeSqlRegex = /\bLIKE\b\s(?![@:?])/i;
|
||||||
|
@ -24,6 +24,7 @@ EXTRA_JS_MODULES += [
|
|||||||
'CertUtils.jsm',
|
'CertUtils.jsm',
|
||||||
'CharsetMenu.jsm',
|
'CharsetMenu.jsm',
|
||||||
'ClientID.jsm',
|
'ClientID.jsm',
|
||||||
|
'Console.jsm',
|
||||||
'debug.js',
|
'debug.js',
|
||||||
'DeferredTask.jsm',
|
'DeferredTask.jsm',
|
||||||
'Deprecated.jsm',
|
'Deprecated.jsm',
|
||||||
|
@ -41,7 +41,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "OS",
|
|||||||
XPCOMUtils.defineLazyModuleGetter(this, "BrowserToolboxProcess",
|
XPCOMUtils.defineLazyModuleGetter(this, "BrowserToolboxProcess",
|
||||||
"resource:///modules/devtools/client/framework/ToolboxProcess.jsm");
|
"resource:///modules/devtools/client/framework/ToolboxProcess.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "ConsoleAPI",
|
XPCOMUtils.defineLazyModuleGetter(this, "ConsoleAPI",
|
||||||
"resource://gre/modules/devtools/shared/Console.jsm");
|
"resource://gre/modules/Console.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "ProductAddonChecker",
|
XPCOMUtils.defineLazyModuleGetter(this, "ProductAddonChecker",
|
||||||
"resource://gre/modules/addons/ProductAddonChecker.jsm");
|
"resource://gre/modules/addons/ProductAddonChecker.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
|
XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
|
||||||
|
Loading…
Reference in New Issue
Block a user