Components.utils.import("resource://gre/modules/Services.jsm"); const Cc = Components.classes; const Ci = Components.interfaces; const Cu = Components.utils; const Cm = Components.manager; Cm.QueryInterface(Ci.nsIComponentRegistrar); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/AddonManager.jsm"); const MY_URL = "resource://cclog-addon/"; Cm.QueryInterface(Ci.nsIComponentRegistrar); Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); function AboutCC() {} AboutCC.prototype = { QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), classDescription: "about:cc", classID: Components.ID("{1b44f837-58e7-4f54-8542-413d13b6d61e}"), contractID: "@mozilla.org/network/protocol/about;1?what=cc", newChannel: function(uri) { var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); var html = 'data:text/html,
\n' + '\n' + '\n' + '\n'; html += "\n";
// html += "All traces (slow!): \n"; html += " \n"; html += " \n"; html += " \n"; html += "Find roots (address): \n"; html += " \n"; html += " \n"; html += "Find graph (address): \n"; html += " \n"; html += " \n"; html += "Find objects containing (name or address): \n"; html += " \n"; html += " \n"; html += " | \n";
html += "Log area 1 | \n";
html += "Log area 2 |