
How to disable installation of add-on from file.
How to disable installation of add-on from file? Thunderbird 52.1.1
Modified
Chosen solution
You can totally disable the installation of add-ons by setting the pref xpinstall.enabled to false in the config editor (Tools > Options > Advanced > General). If you only want to disable installing add-ons from a file, I think you can set the pref extensions.enabledScopes to 1, but I'm not quite sure about that. Please try it out to see if it works.
Read this answer in context 👍 0All Replies (9)
Modified
Chosen Solution
You can totally disable the installation of add-ons by setting the pref xpinstall.enabled to false in the config editor (Tools > Options > Advanced > General). If you only want to disable installing add-ons from a file, I think you can set the pref extensions.enabledScopes to 1, but I'm not quite sure about that. Please try it out to see if it works.
In this setting xpinstall.enabled i use. But it is not blocks the installation of file
Setting extensions.enabledScopes (0, 1, 15) does not block installation of the add-on=(
Hmz... You can maybe hide the menuitem via userChrome.css, to prevent a user from choosing it, but this won't stop a user if s/he is determined to install an add-on from a file. The enabledScopes setting prevents the user from putting the xpi directly in his profile folder...
userChrome.css
- header-utils-btn{
display: none !important; } Why do not want to hide the button with not desired settings? debuggers are running.
Come to think of it, I think you can still drop the downloaded xpi on the add-on manager window…
niki___91 сказал(а)
userChrome.cssdisplay: none !important; } Why do not want to hide the button with not desired settings? debuggers are running.
- header-utils-btn{
This way why it's not working.
Are you sure you set xpinstall.enabled to false? You can also add the pref xpinstall.whitelist.required and set it to true. Notice that both prefs have only one i: xpinstall and not xpiInstall…
Сделал такие настройки. файлы лежащие в пользовательском коталоге ограничивать по правом(userContent.css, userChrome.css) Не нашел Shortkey для открытие запрещеных менюшек. они вообще есть?
userContent.css
/* set default namespace to XUL */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Отключаем вывод кнопки для загрузки из файла. */
- header-utils-btn{
display: none !important;
}
userChrome.css
/* set default namespace to XUL */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Отключаем вывод Дополнения из контекстного меню. */
- appmenu_addons {
display: none !important;
}
/* Отключаем вывод Настройки из контекстного меню. */
- appmenu_customize {
display: none !important;
}
/* Отключаем вывод Инструментов из контекстного меню. */
- appmenu_tasksMenu {
display: none !important;
}
/* Отключаем вывод Дополнения из верхнего меню. */
- addonsManager {
display: none !important;
}
/* Отключаем вывод Дополнения из верхнего меню. */
- addonsManager {
display: none !important;
}
/* Отключаем вывод Импорт из верхнего меню. */
- menu_import {
display: none !important;
}
/* Отключаем вывод Настройка из верхнего меню. */
- menu_preferences {
display: none !important;
}
/* Отключаем вывод Инструменты разработчика из верхнего меню. */
- devtoolsMenu {
display: none !important;
}
mozilla.cfg
// // Отключаем просмотр паролей. lockPref("pref.privacy.disable_button.view_passwords", true); // Отключаем дополнения. lockPref("xpinstall.enabled", false); // Запрещаем принудительно загрузку содержимого из интернета. lockPref("mailnews.message_display.disable_remote_image", true);