Bug 573557 - Rename the category names for script globals to avoid spaces, r=jst

This commit is contained in:
Benjamin Smedberg 2010-06-21 16:57:44 -04:00
Родитель add7533996
Коммит 09db74cdec
5 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

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