mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 573557 - Rename the category names for script globals to avoid spaces, r=jst
This commit is contained in:
parent
add7533996
commit
09db74cdec
@ -1421,7 +1421,7 @@ FeedWriter.prototype = {
|
||||
classID: Components.ID("{49bb6593-3aff-4eb3-a068-2712c28bd58e}"),
|
||||
implementationLanguage: Ci.nsIProgrammingLanguage.JAVASCRIPT,
|
||||
flags: Ci.nsIClassInfo.DOM_OBJECT,
|
||||
_xpcom_categories: [{ category: "JavaScript global constructor",
|
||||
_xpcom_categories: [{ category: "JavaScript-global-constructor",
|
||||
entry: "BrowserFeedWriter"}],
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIFeedWriter, Ci.nsIClassInfo,
|
||||
Ci.nsIDOMEventListener, Ci.nsIObserver,
|
||||
|
@ -304,7 +304,7 @@ function (compMgr, fileSpec, location, type)
|
||||
var catman = Components.classes[CATMAN_CONTRACTID].
|
||||
getService(nsICategoryManager);
|
||||
|
||||
const JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY = "JavaScript global property";
|
||||
const JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY = "JavaScript-global-property";
|
||||
catman.addCategoryEntry(JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY,
|
||||
"sidebar",
|
||||
SIDEBAR_CONTRACTID,
|
||||
|
@ -39,28 +39,28 @@
|
||||
#define nsIScriptNameSpaceManager_h__
|
||||
|
||||
#define JAVASCRIPT_GLOBAL_CONSTRUCTOR_CATEGORY \
|
||||
"JavaScript global constructor"
|
||||
"JavaScript-global-constructor"
|
||||
|
||||
#define JAVASCRIPT_GLOBAL_CONSTRUCTOR_PROTO_ALIAS_CATEGORY \
|
||||
"JavaScript global constructor prototype alias"
|
||||
"JavaScript-global-constructor-prototype-alias"
|
||||
|
||||
#define JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY \
|
||||
"JavaScript global property"
|
||||
"JavaScript-global-property"
|
||||
|
||||
// a global property that is only accessible to privileged script
|
||||
#define JAVASCRIPT_GLOBAL_PRIVILEGED_PROPERTY_CATEGORY \
|
||||
"JavaScript global privileged property"
|
||||
"JavaScript-global-privileged-property"
|
||||
|
||||
#define JAVASCRIPT_GLOBAL_STATIC_NAMESET_CATEGORY \
|
||||
"JavaScript global static nameset"
|
||||
"JavaScript-global-static-nameset"
|
||||
|
||||
#define JAVASCRIPT_GLOBAL_DYNAMIC_NAMESET_CATEGORY \
|
||||
"JavaScript global dynamic nameset"
|
||||
"JavaScript-global-dynamic-nameset"
|
||||
|
||||
#define JAVASCRIPT_DOM_CLASS \
|
||||
"JavaScript DOM class"
|
||||
"JavaScript-DOM-class"
|
||||
|
||||
#define JAVASCRIPT_DOM_INTERFACE \
|
||||
"JavaScript DOM interface"
|
||||
"JavaScript-DOM-interface"
|
||||
|
||||
#endif /* nsIScriptNameSpaceManager_h__ */
|
||||
|
@ -559,7 +559,7 @@ extApplication.prototype = {
|
||||
// get this contractID registered for certain categories via XPCOMUtils
|
||||
_xpcom_categories: [
|
||||
// add Application as a global property for easy access
|
||||
{ category: "JavaScript global privileged property" }
|
||||
{ category: "JavaScript-global-privileged-property" }
|
||||
],
|
||||
|
||||
// for nsIClassInfo
|
||||
|
@ -55,7 +55,7 @@ function run_test() {
|
||||
getService(AM_Ci.nsICategoryManager);
|
||||
|
||||
try {
|
||||
var contract = cm.getCategoryEntry("JavaScript global privileged property",
|
||||
var contract = cm.getCategoryEntry("JavaScript-global-privileged-property",
|
||||
"Application");
|
||||
Application = AM_Cc[contract].getService(AM_Ci.extIApplication);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user