зеркало из https://github.com/mozilla/gecko-dev.git
Bug 601890: Move HUDService to tier_app, and from toolkit.jar to browser.jar. r=Mitch a=blocking-beta7
This commit is contained in:
Родитель
fa1e54811d
Коммит
a456477c56
|
@ -7934,7 +7934,7 @@ var TabContextMenu = {
|
|||
};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "HUDConsoleUI", function () {
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
try {
|
||||
return HUDService.consoleUI;
|
||||
}
|
||||
|
|
|
@ -87,3 +87,5 @@ browser.jar:
|
|||
# the following files are browser-specific overrides
|
||||
* content/browser/license.html (/toolkit/content/license.html)
|
||||
% override chrome://global/content/license.html chrome://browser/content/license.html
|
||||
# XXXkhuey This really should live in browser/, but it's too late in the release cycle to move
|
||||
+ content/browser/NetworkPanel.xhtml (/toolkit/components/console/hudservice/NetworkPanel.xhtml)
|
||||
|
|
|
@ -47,6 +47,8 @@ endif
|
|||
|
||||
tier_app_dirs += $(MOZ_BRANDING_DIRECTORY)
|
||||
|
||||
tier_app_dirs += toolkit/components/console/hudservice
|
||||
|
||||
tier_app_dirs += browser
|
||||
|
||||
installer:
|
||||
|
|
|
@ -45,10 +45,5 @@ include $(DEPTH)/config/autoconf.mk
|
|||
|
||||
EXTRA_PP_COMPONENTS = jsconsole-clhandler.js jsconsole-clhandler.manifest
|
||||
|
||||
ifeq (browser,$(MOZ_BUILD_APP))
|
||||
PARALLEL_DIRS = hudservice \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
|
|
@ -614,7 +614,7 @@ function NetworkPanel(aParent, aHttpActivity)
|
|||
|
||||
// Create the browser that displays the NetworkPanel XHTML.
|
||||
this.browser = createAndAppendElement(this.panel, "browser", {
|
||||
src: "chrome://global/content/NetworkPanel.xhtml",
|
||||
src: "chrome://browser/content/NetworkPanel.xhtml",
|
||||
disablehistory: "true",
|
||||
flex: "1"
|
||||
});
|
||||
|
|
|
@ -46,7 +46,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
|
||||
XPCOMUtils.defineLazyGetter(this, "HUDService", function () {
|
||||
try {
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
}
|
||||
catch (ex) {
|
||||
dump(ex + "\n");
|
||||
|
@ -56,7 +56,7 @@ XPCOMUtils.defineLazyGetter(this, "HUDService", function () {
|
|||
|
||||
XPCOMUtils.defineLazyGetter(this, "ConsoleUtils", function () {
|
||||
try {
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
}
|
||||
catch (ex) {
|
||||
dump(ex + "\n");
|
||||
|
|
|
@ -41,7 +41,7 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_REPLACED_API_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console-replaced-api.html";
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// Tests that appropriately-localized timestamps are printed.
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
function test() {
|
||||
const TEST_TIMESTAMP = 12345678;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// Tests that the Web Console close button functions.
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html";
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html";
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
const TEST_URI = "http://example.com/";
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "HUDService", function () {
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
return HUDService;
|
||||
});
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/";
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html";
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ const Cc = Components.classes;
|
|||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html";
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html";
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ const Cc = Components.classes;
|
|||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-bug-593003-iframe-wrong-hud.html";
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// opened and then closed.
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_URI = "http://example.com/";
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
let hud;
|
||||
let hudId;
|
||||
|
|
|
@ -13,7 +13,7 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
|
||||
const TEST_NETWORK_REQUEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-network-request.html";
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
toolkit.jar:
|
||||
*+ content/global/console.js (content/console.js)
|
||||
*+ content/global/console.xul (content/console.xul)
|
||||
+ content/global/NetworkPanel.xhtml (hudservice/NetworkPanel.xhtml)
|
||||
+ content/global/console.css (content/console.css)
|
||||
+ content/global/consoleBindings.xml (content/consoleBindings.xml)
|
||||
|
|
Загрузка…
Ссылка в новой задаче