搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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