Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Disable manual xpi installation

  • 4 відповіді
  • 1 має цю проблему
  • 10 переглядів
  • Остання відповідь від ma4x

more options

I want to disable manual installation of xpi files in Firefox. Installation from addons.mozilla.org should still be possible. In Firefox 17 ESR it was working fine with the following settings in mozilla.cfg: lockPref("xpinstall.enabled", false); lockPref("xpinstall.whitelist.required", true); lockPref("xpinstall.whitelist.add","update.mozilla.org,addons.mozilla.org");

In current versions of Firefox this isn't working anymore. As soon as I set "xpinstall.enabled" to false, the "Get Add-ons" menu under "Add-ons" disappears and I'm also not able to install from http://addons.mozilla.org

I want to disable manual installation of xpi files in Firefox. Installation from addons.mozilla.org should still be possible. In Firefox 17 ESR it was working fine with the following settings in mozilla.cfg: lockPref("xpinstall.enabled", false); lockPref("xpinstall.whitelist.required", true); lockPref("xpinstall.whitelist.add","update.mozilla.org,addons.mozilla.org"); In current versions of Firefox this isn't working anymore. As soon as I set "xpinstall.enabled" to false, the "Get Add-ons" menu under "Add-ons" disappears and I'm also not able to install from http://addons.mozilla.org

Усі відповіді (4)

more options

Hello ma4x

with quotes in the end of update.mozilla.org and in the begging of addons.mozilla.org ?

thank you

Змінено ideato

more options

No, this doesn't work. The syntax should be ok. For me it looks like the logic in Firefox has changed in some way or maybe it's a bug and the whitelist isn't interpreted properly.

more options

I can confirm that I also see that the Get Extensions tab is gone if you lock the xpinstall.enabled to false and that this isn't happening in the Firefox 17 ESR version.

  • lockPref("xpinstall.enabled", false);

But I can't install extensions from white listed websites or websites that have an allow exception in Firefox 17 ESR. Installing a Persona works in Firefox 17 and in the current Firefox 32 release with your lockPref() calls.

Note that Firefox 17 ESR is outdated and should at least be replaced by Firefox 24 ESR (24.8.1 is current)

more options

I checked again. In Firefox 17 I'm able to install add-ons from "about:addons" (the "Get Add-ons" tab is visible), but I'm not able to do installations from "https://addons.mozilla.org". For me it looks like a bug in current Firefox versions, as "xpinstall.whitelist.add" isn't working...