Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Deploy Standard Configuration to multiple PCs Issue

  • 6 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: ntripp

more options

I'm currently having an issue deploying setting to multiple Firefox installs. After trying a few methods it seems that user.js or similar js files is the way to go.

The user.js file is successfully copied to user profiles but the settings are not taking affect.

site-list = "internaldomain.com,sctwsgateway.internaldomain.com:8080,gateway:8080,gateway:8080" pref("network.negotiate-auth.trusted-uris", "internaldomain.com,gateway.internaldomain.com:8080,gateway:8080,gateway:8080); pref("network.negotiate-auth.delegation-uris", site-list); pref("network.automatic-ntlm-auth.trusted-uris", site-list); pref("network.automatic-ntlm-auth.allow-non-fqdn", true); pref("network.automatic-ntlm-auth.allow-proxies", true); pref("browser.shell.checkDefaultBrowser", false);

internaldomain.com is a substitution for our actual domain

I'm currently having an issue deploying setting to multiple Firefox installs. After trying a few methods it seems that user.js or similar js files is the way to go. The user.js file is successfully copied to user profiles but the settings are not taking affect. site-list = "internaldomain.com,sctwsgateway.internaldomain.com:8080,gateway:8080,gateway:8080" pref("network.negotiate-auth.trusted-uris", "internaldomain.com,gateway.internaldomain.com:8080,gateway:8080,gateway:8080); pref("network.negotiate-auth.delegation-uris", site-list); pref("network.automatic-ntlm-auth.trusted-uris", site-list); pref("network.automatic-ntlm-auth.allow-non-fqdn", true); pref("network.automatic-ntlm-auth.allow-proxies", true); pref("browser.shell.checkDefaultBrowser", false); internaldomain.com is a substitution for our actual domain

선택된 해결법

Sorry, I am not a developer just an advanced Firefox user starting in 2002 with Phoenix 0.3. I have always used user_pref in user.js. And the original 'bible' for advanced Firefox users - http://kb.mozillazine.org/User.js_file - shows user_pref as the syntax to use.

I suspect that pref is appropriate for a mozilla.cfg file only - https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment - as shown under Configuration in that article.

What I have learned thru experience with user.js over the years is With user.js if there is one faulty or invalid pref Firefox won't read the user.js file any further; only the prefs above the faulty pref will be read. Usually you can figure out where Firefox stopped reading the user.js by viewing the prefs.js file in the Profile folder; the prefs above the faulty pref will make it to prefs.js but the faulty pref and those below it won't be in the prefs.js file. I have run into that many times over the years where user.js didn't seem to work or stopped working partway thru the file; usually due to a mistype I made. but also when there was a major change to Firefox which invalidated or deprecated a pref that I had been using in any earlier version.


Also, why is this at the top? site-list = "internaldomain.com,sctwsgateway.internaldomain.com:8080,gateway:8080,gateway:8080";

If that is in your user.js file, at the top - that looks like the faulty pref, nothing below that would be read.

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (6)

more options

user_pref is used before the prefs in user.js - not merely user

As to the validity of the actual preferences, I can't comment as I am not familiar with the 'network' prefs.

more options

I had the settings with user_pref according to this:

https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences

user_pref or pref should work. I can switch it back and test again, but I've previously used both.

more options

site-list = "internaldomain.com,sctwsgateway.internaldomain.com:8080,gateway:8080,gateway:8080"; user_pref("network.negotiate-auth.trusted-uris", "internaldomain.com,gateway.internaldomain.com:8080,gateway:8080,gateway:8080); user_pref("network.negotiate-auth.delegation-uris", site-list); user_pref("network.automatic-ntlm-auth.trusted-uris", site-list); user_pref("network.automatic-ntlm-auth.allow-non-fqdn", true); user_pref("network.automatic-ntlm-auth.allow-proxies", true); user_pref("browser.shell.checkDefaultBrowser", false);

Same result unfortunately. Thanks for the thought though.

more options

Those preferences all exist in about:config. Do you have another setting you can suggest I add to the file to test it takes effect?

more options

선택된 해결법

Sorry, I am not a developer just an advanced Firefox user starting in 2002 with Phoenix 0.3. I have always used user_pref in user.js. And the original 'bible' for advanced Firefox users - http://kb.mozillazine.org/User.js_file - shows user_pref as the syntax to use.

I suspect that pref is appropriate for a mozilla.cfg file only - https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment - as shown under Configuration in that article.

What I have learned thru experience with user.js over the years is With user.js if there is one faulty or invalid pref Firefox won't read the user.js file any further; only the prefs above the faulty pref will be read. Usually you can figure out where Firefox stopped reading the user.js by viewing the prefs.js file in the Profile folder; the prefs above the faulty pref will make it to prefs.js but the faulty pref and those below it won't be in the prefs.js file. I have run into that many times over the years where user.js didn't seem to work or stopped working partway thru the file; usually due to a mistype I made. but also when there was a major change to Firefox which invalidated or deprecated a pref that I had been using in any earlier version.


Also, why is this at the top? site-list = "internaldomain.com,sctwsgateway.internaldomain.com:8080,gateway:8080,gateway:8080";

If that is in your user.js file, at the top - that looks like the faulty pref, nothing below that would be read.

more options

seems the user.js can't use variables. after adding the string manually to all the elements it's working.