mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
parent
01247d33ff
commit
93944a63e9
5 changed files with 6 additions and 41 deletions
|
|
@ -53,8 +53,6 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
|
|||
["UpdateUtils", "resource://gre/modules/UpdateUtils.jsm"],
|
||||
["Weave", "resource://services-sync/main.js"],
|
||||
["fxAccounts", "resource://gre/modules/FxAccounts.jsm"],
|
||||
["gDevTools", "resource://devtools/client/framework/gDevTools.jsm"],
|
||||
["gDevToolsBrowser", "resource://devtools/client/framework/gDevTools.jsm"],
|
||||
["webrtcUI", "resource:///modules/webrtcUI.jsm", ]
|
||||
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));
|
||||
|
||||
|
|
@ -69,12 +67,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "SafeBrowsing",
|
|||
["gDNSService", "@mozilla.org/network/dns-service;1", "nsIDNSService"],
|
||||
].forEach(([name, cc, ci]) => XPCOMUtils.defineLazyServiceGetter(this, name, cc, ci));
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "BrowserToolboxProcess", function() {
|
||||
let tmp = {};
|
||||
Cu.import("resource://devtools/client/framework/ToolboxProcess.jsm", tmp);
|
||||
return tmp.BrowserToolboxProcess;
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
|
||||
return Services.strings.createBundle('chrome://browser/locale/browser.properties');
|
||||
});
|
||||
|
|
@ -7873,15 +7865,6 @@ var TabContextMenu = {
|
|||
}
|
||||
};
|
||||
|
||||
Object.defineProperty(this, "HUDService", {
|
||||
get: function HUDService_getter() {
|
||||
let devtools = Cu.import("resource://devtools/shared/Loader.jsm", {}).devtools;
|
||||
return devtools.require("devtools/client/webconsole/hudservice").HUDService;
|
||||
},
|
||||
configurable: true,
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
// Prompt user to restart the browser in safe mode
|
||||
function safeModeRestart() {
|
||||
if (Services.appinfo.inSafeMode) {
|
||||
|
|
@ -7939,30 +7922,6 @@ function duplicateTabIn(aTab, where, delta) {
|
|||
}
|
||||
}
|
||||
|
||||
var Scratchpad = {
|
||||
openScratchpad: function SP_openScratchpad() {
|
||||
return this.ScratchpadManager.openScratchpad();
|
||||
}
|
||||
};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(Scratchpad, "ScratchpadManager", function() {
|
||||
let tmp = {};
|
||||
Cu.import("resource://devtools/client/scratchpad/scratchpad-manager.jsm", tmp);
|
||||
return tmp.ScratchpadManager;
|
||||
});
|
||||
|
||||
var ResponsiveUI = {
|
||||
toggle: function RUI_toggle() {
|
||||
this.ResponsiveUIManager.toggle(window, gBrowser.selectedTab);
|
||||
}
|
||||
};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(ResponsiveUI, "ResponsiveUIManager", function() {
|
||||
let tmp = {};
|
||||
Cu.import("resource://devtools/client/responsivedesign/responsivedesign.jsm", tmp);
|
||||
return tmp.ResponsiveUIManager;
|
||||
});
|
||||
|
||||
var MousePosTracker = {
|
||||
_listeners: new Set(),
|
||||
_x: 0,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
// Tests that the addon commands works as they should
|
||||
|
||||
const csscoverage = require("devtools/shared/fronts/csscoverage");
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
|
||||
const PAGE_1 = TEST_BASE_HTTPS + "browser_cmd_csscoverage_page1.html";
|
||||
const PAGE_2 = TEST_BASE_HTTPS + "browser_cmd_csscoverage_page2.html";
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
const TEST_URL = "data:text/html,<html><head><title>Test for the " +
|
||||
"highlighter keybindings</title></head><body>" +
|
||||
"<h1>Keybindings!</h1></body></html>"
|
||||
|
||||
const {gDevToolsBrowser} = require("devtools/client/framework/devtools-browser");
|
||||
|
||||
function test()
|
||||
{
|
||||
waitForExplicitFinish();
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
|
|||
const {console} = Cu.import("resource://gre/modules/Console.jsm", {});
|
||||
const {ScratchpadManager} = Cu.import("resource://devtools/client/scratchpad/scratchpad-manager.jsm", {});
|
||||
const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const {gDevTools} = require("devtools/client/framework/devtools");
|
||||
const Services = require("Services");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const flags = require("devtools/shared/flags");
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ Services.scriptloader.loadSubScript(
|
|||
|
||||
var {Utils: WebConsoleUtils} = require("devtools/client/webconsole/utils");
|
||||
const WEBCONSOLE_STRINGS_URI = "devtools/client/locales/webconsole.properties";
|
||||
var {HUDService} = require("devtools/client/webconsole/hudservice");
|
||||
var WCUL10n = new WebConsoleUtils.L10n(WEBCONSOLE_STRINGS_URI);
|
||||
|
||||
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue