為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

probleme firefox config cfg

more options

Hello,

We have a problem with version 78.0.2 ESR,

We apply a firefox configuration strategy with a cfg in the firefox folder & since the last firefox version opens with an error message "failure to read the configuration file. Please contact your system administrator."


with the version 68.10.0 ESR The message does not appear do you have an idea?

Hello, We have a problem with version 78.0.2 ESR, We apply a firefox configuration strategy with a cfg in the firefox folder & since the last firefox version opens with an error message "failure to read the configuration file. Please contact your system administrator." with the version 68.10.0 ESR The message does not appear do you have an idea?
附加的畫面擷圖

被選擇的解決方法

This issue is that Services.perms.add no longer works.

You'll need to use:

     Services.perms.addFromPrincipal(
       Services.scriptSecurityManager.createContentPrincipalFromOrigin("http://sriglx"),
       "popup", 1
     );

There's no need do a newURL anymore.

I would suggest you look into using our policy code to do this. It's much easier.

https://github.com/mozilla/policy-templates#popupblocking

從原來的回覆中察看解決方案 👍 0

所有回覆 (8)

more options

Hello,

We have a problem with version 78.0.2 ESR,

We apply a firefox configuration strategy with a cfg in the firefox folder & since the last firefox version opens with an error message "failure to read the configuration file. Please contact your system administrator."


when we click on ok firefox launches,but the error message will be annoying for users.


with the version 68.10.0 ESR The message does not appear do you have an idea? Thank you

由 aurelien.huteau 於 修改

more options

HI aurelien.huteau

I've asked a Firefox developer to take a look!

Cheers!

...Roland

more options

Hi aurelien.huteau

The developer asked what the error if any is in the javascript console [1]

Cheers!

...Roland

[1] You can open the Browser Console in one of two ways:

  1. from the menu: select "Browser Console" from the Web Developer submenu in the Firefox Menu (or Tools
  2. from the keyboard: press Ctrl+Shift+J (or Cmd+Shift+J on a Mac).
more options

This means that you use an autoconfig.cfg file and that Firefox notices errors in this file. This autoconfig file is run a privileged JavaScript and error throw an exception.

Are there specific errors reported in the Browser Console related to this autoconfig.cfg file ?

(EDIT: noticed that Roland suggested the same while I was typing my response)

由 cor-el 於 修改

more options

Hello, Sorry for the delay I was on vacation.

here is a screenshoot of the problem encountered with version 78.0.2

as well as a copy paste of our chp.cfg


Thank you for your responses reactive =)

chp.cfg:

//Firefox Default Settings

// Désactive la vérification de la comptabilité des extensions clearPref("extensions.lastAppVersion");

// Désactive l'affichage de 'Connaître vos droits' au premier lancement pref("browser.rights.3.shown", true);

// Ne montre pas les nouvelles fonctionnalités à chaque mise à jour pref("browser.startup.homepage_override.mstone","ignore");

// Modifie la page d'accueil pref("browser.startup.homepage", "http://typo3.chprod.fr");

// Désactive la vérification des plugins lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url");

// Désactive la popup navigateur par défaut lockPref("browser.shell.checkDefaultBrowser", false);

// Désactive le rapport de santé lockPref("datareporting.healthreport.service.enabled", false);

// Disable all data upload (Telemetry and FHR) lockPref("datareporting.policy.dataSubmissionEnabled", false);

// Désactive le rapport de crashs lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false;

// supprimer la popup d'import de la configuration pref("profile.migration_behavior", 0);

// Désactive le message cette connexion n'est pas sécuriséé pref("security.insecure_field_warning.contextual.enabled", false);

// configure le proxy // type : 0=pas de proxy, 1=manuel, 2=autoconf par url, 4=autodetect, 5=system pref("network.proxy.type", 4); // proxy : pref("network.proxy.backup.ftp", "servproxy.chprod.fr"); pref("network.proxy.backup.ftp_port", 8080); pref("network.proxy.backup.gopher", "servproxy.chprod.fr"); pref("network.proxy.backup.gopher_port", 8080); pref("network.proxy.backup.socks", "servproxy.chprod.fr"); pref("network.proxy.backup.socks_port", 8080); pref("network.proxy.backup.ssl", "servproxy.chprod.fr"); pref("network.proxy.backup.ssl_port", 8080); pref("network.proxy.ftp", "servproxy.chprod.fr"); pref("network.proxy.ftp_port", 8080); pref("network.proxy.gopher", "servproxy.chprod.fr"); pref("network.proxy.gopher_port", 8080); pref("network.proxy.http", "servproxy.chprod.fr"); pref("network.proxy.http_port", 8080); pref("network.proxy.no_proxies_on", "10.0.0.0/8,sri,srvintra1x,srvintra1,10.1.11.108"); pref("network.proxy.share_proxy_settings", true); pref("network.proxy.socks", "servproxy.chprod.fr"); pref("network.proxy.socks_port", 8080); pref("network.proxy.ssl", "servproxy.chprod.fr"); pref("network.proxy.ssl_port", 8080);


pref("privacy.sanitize.migrateFx3Prefs", true); pref("toolkit.telemetry.prompted", 2); pref("toolkit.telemetry.rejected", true); pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1258295937);

// autorisation des popups pour certains sites : Components.utils.import("resource://gre/modules/Services.jsm"); var uri = Services.io.newURI("http://10.1.148.170", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://kaliweb", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://servsql2", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://sriglx", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://typo3.chprod.fr", null, null); Services.perms.add(uri, "popup", 1);

more options

Hello, Sorry for the delay I was on vacation.

here is a screenshoot of the problem encountered with version 78.0.2

as well as a copy paste of our chp.cfg


Thank you for your responses reactive =)

chp.cfg:

//Firefox Default Settings

// Désactive la vérification de la comptabilité des extensions clearPref("extensions.lastAppVersion");

// Désactive l'affichage de 'Connaître vos droits' au premier lancement pref("browser.rights.3.shown", true);

// Ne montre pas les nouvelles fonctionnalités à chaque mise à jour pref("browser.startup.homepage_override.mstone","ignore");

// Modifie la page d'accueil pref("browser.startup.homepage", "http://typo3.chprod.fr");

// Désactive la vérification des plugins lockPref("plugins.hide_infobar_for_outdated_plugin", true); clearPref("plugins.update.url");

// Désactive la popup navigateur par défaut lockPref("browser.shell.checkDefaultBrowser", false);

// Désactive le rapport de santé lockPref("datareporting.healthreport.service.enabled", false);

// Disable all data upload (Telemetry and FHR) lockPref("datareporting.policy.dataSubmissionEnabled", false);

// Désactive le rapport de crashs lockPref("toolkit.crashreporter.enabled", false); Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false;

// supprimer la popup d'import de la configuration pref("profile.migration_behavior", 0);

// Désactive le message cette connexion n'est pas sécuriséé pref("security.insecure_field_warning.contextual.enabled", false);

// configure le proxy // type : 0=pas de proxy, 1=manuel, 2=autoconf par url, 4=autodetect, 5=system pref("network.proxy.type", 4); // proxy : pref("network.proxy.backup.ftp", "servproxy.chprod.fr"); pref("network.proxy.backup.ftp_port", 8080); pref("network.proxy.backup.gopher", "servproxy.chprod.fr"); pref("network.proxy.backup.gopher_port", 8080); pref("network.proxy.backup.socks", "servproxy.chprod.fr"); pref("network.proxy.backup.socks_port", 8080); pref("network.proxy.backup.ssl", "servproxy.chprod.fr"); pref("network.proxy.backup.ssl_port", 8080); pref("network.proxy.ftp", "servproxy.chprod.fr"); pref("network.proxy.ftp_port", 8080); pref("network.proxy.gopher", "servproxy.chprod.fr"); pref("network.proxy.gopher_port", 8080); pref("network.proxy.http", "servproxy.chprod.fr"); pref("network.proxy.http_port", 8080); pref("network.proxy.no_proxies_on", "10.0.0.0/8,sri,srvintra1x,srvintra1,10.1.11.108"); pref("network.proxy.share_proxy_settings", true); pref("network.proxy.socks", "servproxy.chprod.fr"); pref("network.proxy.socks_port", 8080); pref("network.proxy.ssl", "servproxy.chprod.fr"); pref("network.proxy.ssl_port", 8080);


pref("privacy.sanitize.migrateFx3Prefs", true); pref("toolkit.telemetry.prompted", 2); pref("toolkit.telemetry.rejected", true); pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1258295937);

// autorisation des popups pour certains sites : Components.utils.import("resource://gre/modules/Services.jsm"); var uri = Services.io.newURI("http://10.1.148.170", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://kaliweb", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://servsql2", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://sriglx", null, null); Services.perms.add(uri, "popup", 1); var uri = Services.io.newURI("http://typo3.chprod.fr", null, null); Services.perms.add(uri, "popup", 1);

more options

選擇的解決方法

This issue is that Services.perms.add no longer works.

You'll need to use:

     Services.perms.addFromPrincipal(
       Services.scriptSecurityManager.createContentPrincipalFromOrigin("http://sriglx"),
       "popup", 1
     );

There's no need do a newURL anymore.

I would suggest you look into using our policy code to do this. It's much easier.

https://github.com/mozilla/policy-templates#popupblocking

more options

Hello,

Thank you very much problem solved.


Aurelien Huteau