diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index f75c849951b..3c3f5667ab2 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -478,15 +478,15 @@ static nsDOMClassInfoData sClassInfoData[] = { NS_DEFINE_CLASSINFO_DATA(XULCommandDispatcher, nsDOMGenericSH, DOM_DEFAULT_SCRIPTABLE_FLAGS) #endif - NS_DEFINE_CLASSINFO_DATA(XULControllers, nsNonDOMObjectSH, - DEFAULT_SCRIPTABLE_FLAGS) - NS_DEFINE_CLASSINFO_DATA(BoxObject, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(XULControllers, nsNonDOMObjectSH, + DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(BoxObject, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) #ifdef MOZ_XUL - NS_DEFINE_CLASSINFO_DATA(TreeSelection, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) - NS_DEFINE_CLASSINFO_DATA(TreeContentView, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(TreeSelection, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(TreeContentView, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) #endif // Crypto classes @@ -503,19 +503,19 @@ static nsDOMClassInfoData sClassInfoData[] = { WINDOW_SCRIPTABLE_FLAGS) #ifdef MOZ_XUL - NS_DEFINE_CLASSINFO_DATA(XULTemplateBuilder, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(XULTemplateBuilder, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) - NS_DEFINE_CLASSINFO_DATA(XULTreeBuilder, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(XULTreeBuilder, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) #endif NS_DEFINE_CLASSINFO_DATA(DOMStringList, nsStringListSH, ARRAY_SCRIPTABLE_FLAGS) #ifdef MOZ_XUL - NS_DEFINE_CLASSINFO_DATA(TreeColumn, nsDOMGenericSH, - DEFAULT_SCRIPTABLE_FLAGS) + NS_DEFINE_CHROME_ONLY_CLASSINFO_DATA(TreeColumn, nsDOMGenericSH, + DEFAULT_SCRIPTABLE_FLAGS) #endif NS_DEFINE_CLASSINFO_DATA(CSSMozDocumentRule, nsDOMGenericSH, diff --git a/dom/webidl/TreeColumns.webidl b/dom/webidl/TreeColumns.webidl index 6c5497c15b6..be3364b8497 100644 --- a/dom/webidl/TreeColumns.webidl +++ b/dom/webidl/TreeColumns.webidl @@ -5,6 +5,7 @@ interface MozTreeBoxObject; interface MozTreeColumn; +[ChromeOnly] interface TreeColumns { /** * The tree widget for these columns.