Bug 892929 - hide window.CSSFontFeatureValueRule when font features disabled. r=smaug

This commit is contained in:
Boris Zbarsky 2013-07-31 14:17:48 +09:00
Родитель 2afc953011
Коммит 1afbda6eed
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -3695,6 +3695,11 @@ OldBindingConstructorEnabled(const nsGlobalNameStruct *aStruct,
}
}
// Don't expose CSSFontFeatureValuesRule unless the pref is enabled
if (aStruct->mDOMClassInfoID == eDOMClassInfo_CSSFontFeatureValuesRule_id) {
return nsCSSFontFeatureValuesRule::PrefEnabled();
}
return true;
}