Skip to content

Commit

Permalink
Bug 601890: Move HUDService to tier_app, and from toolkit.jar to brow…
Browse files Browse the repository at this point in the history
…ser.jar. r=Mitch a=blocking-beta7

--HG--
branch : GECKO20b7pre_20101006_RELBRANCH
  • Loading branch information
khuey committed Oct 7, 2010
1 parent d5c106c commit b994733
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion browser/base/content/browser.js
Expand Up @@ -7937,7 +7937,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;
}
Expand Down
2 changes: 2 additions & 0 deletions browser/base/jar.mn
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions browser/build.mk
Expand Up @@ -47,6 +47,8 @@ endif

tier_app_dirs += $(MOZ_BRANDING_DIRECTORY)

tier_app_dirs += toolkit/components/console/hudservice

tier_app_dirs += browser

installer:
Expand Down
5 changes: 0 additions & 5 deletions toolkit/components/console/Makefile.in
Expand Up @@ -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

2 changes: 1 addition & 1 deletion toolkit/components/console/hudservice/HUDService.jsm
Expand Up @@ -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"
});
Expand Down
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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;
});

Expand Down
Expand Up @@ -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/";

Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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";

Expand Down
Expand Up @@ -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/";

Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion toolkit/components/console/jar.mn
@@ -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)

0 comments on commit b994733

Please sign in to comment.