当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Set preference for url by about: config

  • 3 件の返信
  • 1 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: cor-el

more options

Hi, I'm doing a custom Firefox for my company and I'd like to know if you can set a preference for url using about: config That is, for example I want to use the preference I have in my file.cfg security.fileuri.origin_policy for a url in value true and in the other url in false. If you could help me, I would be very grateful

Hi, I'm doing a custom Firefox for my company and I'd like to know if you can set a preference for url using about: config That is, for example I want to use the preference I have in my file.cfg security.fileuri.origin_policy for a url in value true and in the other url in false. If you could help me, I would be very grateful

すべての返信 (3)

more options

If that is dependent on the Firefox profile that is used then you can add test code to test wht profile is used currently. Keep in mind that an mozilla.cfg file can contain valid JavaScript code.

This code gives you the path to the profile folder.

 var {classes:Cc, interfaces:Ci, utils:Cu} = Components;
 Cu.import("resource://gre/modules/Services.jsm");
 var profD = Services.dirsvc.get("ProfD", Ci.nsIFile).path;

この投稿は cor-el により に変更されました

more options

I'm sorry if I expressed myself wrong, my question was that if you want to apply for example the pref: lockPref geo.enabled, true value for https://www.google.es and for other sites geo.enabled, false, if it is possible to do it with about: config?

more options

That isn't possible via about:config. Setting this pref is all or nothing. What you want is to modify/set specific site preferences as you can find in "Tools -> Page Info -> Permissions". Site specific permissions are stored in content-prefs.sqlite