为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How do we now access Components.classes in mozilla.cfg. i need it to add x509 cert to db

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

we are currently using this pattern in mozilla.cfg to add our cert to the db

var Cc = Components.classes; var Ci = Components.interfaces; var certdb = Cc[\"@mozilla.org/security/x509certdb;1\"].getService(Ci.nsIX509CertDB); cert1 = "the cert hash"; certdb.addCertFromBase64(cert1, \"C,C,C\", \"\");

with quantum this fails with "Components is not defined"

how do we do this moving forward? thanks

we are currently using this pattern in mozilla.cfg to add our cert to the db var Cc = Components.classes; var Ci = Components.interfaces; var certdb = Cc[\"@mozilla.org/security/x509certdb;1\"].getService(Ci.nsIX509CertDB); cert1 = "the cert hash"; certdb.addCertFromBase64(cert1, \"C,C,C\", \"\"); with quantum this fails with "Components is not defined" how do we do this moving forward? thanks

被采纳的解决方案

What Firefox version is this about?

Is that a release version or a Firefox 60.2.x ESR version?

With the ESR version this should still work, but a Firefox 62 release executes the autoconfig.cfg file in a sandbox.

You can add this line to the autoconfig.js file to disable the sandbox in Firefox 62.

  • pref("general.config.sandbox_enabled", false);
定位到答案原位置 👍 0

所有回复 (3)

more options

选择的解决方案

What Firefox version is this about?

Is that a release version or a Firefox 60.2.x ESR version?

With the ESR version this should still work, but a Firefox 62 release executes the autoconfig.cfg file in a sandbox.

You can add this line to the autoconfig.js file to disable the sandbox in Firefox 62.

  • pref("general.config.sandbox_enabled", false);
more options

62.0.3

only change was to create autoconfig.js file and add sandbox_enabled line. thanks!

however, this function is imperative to our enterprise and we will need this in the future.

more options

I do not know how long there will be support of this pref in Firefox release, so you may have to switch to Firefox ESR.

  • Bug 1479857 - Add a preference (default off) for autoconfig sanboxing for first release
  • after a couple of Releases nothing major has happened, we can remove the pref.
  • If something goes wrong, it won't require a dot release to flip the pref to disable the sandboxing.

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)