Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Disable manual xpi installation

  • 4 trả lời
  • 1 gặp vấn đề này
  • 10 lượt xem
  • Trả lời mới nhất được viết bởi 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

Tất cả các câu trả lời (4)

more options

Hello ma4x

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

thank you

Được chỉnh sửa bởi ideato vào

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