Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to disable installation of add-on from file.

  • 9 replies
  • 1 has this problem
  • 27 views
  • Last reply by niki___91

more options

How to disable installation of add-on from file? Thunderbird 52.1.1

https://yadi.sk/i/65XjC0jl3JRvdQ

How to disable installation of add-on from file? Thunderbird 52.1.1 https://yadi.sk/i/65XjC0jl3JRvdQ

Modified by niki___91

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 👍 0

All Replies (9)

more options

Modified by niki___91

more options

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.

more options

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=(

more options

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...

more options

userChrome.css

  1. header-utils-btn{

display: none !important; } Why do not want to hide the button with not desired settings? debuggers are running.

more options

Come to think of it, I think you can still drop the downloaded xpi on the add-on manager window…

more options

niki___91 сказал(а)

userChrome.css
  1. header-utils-btn{
display: none !important; } Why do not want to hide the button with not desired settings? debuggers are running.

This way why it's not working.

more options

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…

more options

Сделал такие настройки. файлы лежащие в пользовательском коталоге ограничивать по правом(userContent.css, userChrome.css) Не нашел Shortkey для открытие запрещеных менюшек. они вообще есть?

userContent.css

/* set default namespace to XUL */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Отключаем вывод кнопки для загрузки из файла. */

  1. 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");

/* Отключаем вывод Дополнения из контекстного меню. */

  1. appmenu_addons {
   display: none !important;

}

/* Отключаем вывод Настройки из контекстного меню. */

  1. appmenu_customize {
   display: none !important;

}

/* Отключаем вывод Инструментов из контекстного меню. */

  1. appmenu_tasksMenu {
   display: none !important;

}

/* Отключаем вывод Дополнения из верхнего меню. */

  1. addonsManager {
   display: none !important;

}


/* Отключаем вывод Дополнения из верхнего меню. */

  1. addonsManager {
   display: none !important;

}

/* Отключаем вывод Импорт из верхнего меню. */

  1. menu_import {
   display: none !important;

}

/* Отключаем вывод Настройка из верхнего меню. */

  1. menu_preferences {
   display: none !important;

}

/* Отключаем вывод Инструменты разработчика из верхнего меню. */

  1. 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);