Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

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

Firefox ESR 78.7.0 error - "Failed to read the configuration file"

  • 5 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi drepollet

more options

We currently have a setup where we're installing Firefox ESR 68.10.0 using a .CFG and .JS file for custom configurations. Everything has been working great, but now we have a need to update to the latest version of Firefox ESR due to recently-announced security vulnerabilities. I am testing the upgrade to 78.7.0 using the same .CFG and .JS files, and I get the error "Failed to read the configuration file. Please contact your system administrator." at startup. I tried doing a complete uninstall of the old version and install of the new one, keeping the same config files, but the same error comes up. The support documentation for ESR 78.7.0 makes no indication that these configuration files are to be used, instead mentioning that Group Policies should be used for configuration in a Windows environment. But we have various user groups that require specialized configurations, and using the configuration files has worked best for us. Is there any way to keep using the configuration files? If so, what changes would I need to make to the formatting of the files to get them working? Any help is greatly appreciated!

We currently have a setup where we're installing Firefox ESR 68.10.0 using a .CFG and .JS file for custom configurations. Everything has been working great, but now we have a need to update to the latest version of Firefox ESR due to recently-announced security vulnerabilities. I am testing the upgrade to 78.7.0 using the same .CFG and .JS files, and I get the error "Failed to read the configuration file. Please contact your system administrator." at startup. I tried doing a complete uninstall of the old version and install of the new one, keeping the same config files, but the same error comes up. The support documentation for ESR 78.7.0 makes no indication that these configuration files are to be used, instead mentioning that Group Policies should be used for configuration in a Windows environment. But we have various user groups that require specialized configurations, and using the configuration files has worked best for us. Is there any way to keep using the configuration files? If so, what changes would I need to make to the formatting of the files to get them working? Any help is greatly appreciated!

Giải pháp được chọn

You need to convert your use of Services.perms.add to Services.perms.addFromPrinicipal. The syntax is close, just changes the way the URL is created

     Services.perms.addFromPrincipal(
       Services.scriptSecurityManager.createContentPrincipalFromOrigin("https://URL"),
       "popup",
       1);
Đọc câu trả lời này trong ngữ cảnh 👍 1

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

more options

This is about using an autoconfig.cfg file to deploy Firefox and there is a problem with this file, either missing or has invalid JavaScript. You can check the Browser Console on startup for related messages.

Note that GPO prevails and autoconfig and policies might not work.

I will move the question to Firefox for enterprise.

more options

My guess is some API changed and it's not working in 78. Should be easy to fix.

Can you check the JS console after startup and look for errors that reference your config file?

Ctrl+Shift+J

Or if you're willing to send me your autoconfig file, I can take a look

mkaply at mozilla.com

more options

Mike Kaply said

My guess is some API changed and it's not working in 78. Should be easy to fix. Can you check the JS console after startup and look for errors that reference your config file? Ctrl+Shift+J Or if you're willing to send me your autoconfig file, I can take a look mkaply at mozilla.com

Thanks for your help. I was able to find an error related to a function in our custom CFG file. I've included a screenshot of the error as well as the function in the CFG file. The "var" declaration and "Services.perms.add" function are used several times for other URLs in the file.

Let me know if there is anything else I can provide to aid with troubleshooting this. Thanks!

more options

Giải pháp được chọn

You need to convert your use of Services.perms.add to Services.perms.addFromPrinicipal. The syntax is close, just changes the way the URL is created

     Services.perms.addFromPrincipal(
       Services.scriptSecurityManager.createContentPrincipalFromOrigin("https://URL"),
       "popup",
       1);
more options

Mike Kaply said

You need to convert your use of Services.perms.add to Services.perms.addFromPrinicipal. The syntax is close, just changes the way the URL is created Services.perms.addFromPrincipal( Services.scriptSecurityManager.createContentPrincipalFromOrigin("https://URL"), "popup", 1);

Thank you Mike, this worked great!