Here's some example code you could place in AutoConfig to hide search
engines:
https://pastebin.mozilla.org/8863660
You would still need to disable the "Restore Default Search Engines"
button in the Search preferences. You could do that with the Hidden UI
feature in the CCK2 by hiding @restoreDefaultSearchEngines.
Mike
On 3/14/16 8:34 AM, Tim Van Dyne wrote:
Ahha, that wasn’t caught by 3 people. Thanks mike!
As for the search engines, what kind of code are we talking about? If
I just understood what needed to be accomplished I may be able to just
do the coding.
Just based on what I see, "C:\Program Files (x86)\Mozilla
Firefox\browser\omni.ja" is a container for these (among other)
settings/files. I opened it up with 7zip hoping that I could just
delete the target .xml files out of the package, but that didn’t work out.
-Tim
*From:*Enterprise [mailto:[email protected]] *On Behalf
Of *Kaply Consulting
*Sent:* Monday, March 14, 2016 7:25 AM
*To:* [email protected]
*Subject:* [SPAM-Keyword] - Re: [Mozilla Enterprise] Firefox 45ESR -
deployment
Where are you adding user_pref?
That style doesn't work in Autoconfig.
pref() is for user prefs.
defaultPref() is for default prefs.
Mike
On 3/14/16 7:19 AM, Tim Van Dyne wrote:
When I add these 2 lines, Firefox will not run (the process starts
and stops immediately), even in safe mode:
user_pref("browser.pocket.enabled", false);
user_pref("browser.toolbarbuttons.introduced.pocket-button", false);
Removing the 2^nd line gives the same results.
Those 2 lines are what gets added to the config when I
interactively disable pocket.
This is with a vanilla 45ESR install.
Here’s what I’m using:
Install.cmd:
"%~dp0Firefox Setup 45.0esr.exe" /INI=%~dp0Firefox.ini
if exist "%programfiles(x86)%\Mozilla Firefox\" copy /Y
"%~dp0override.ini" "%programfiles(x86)%\Mozilla Firefox\browser\"
if exist "%programfiles(x86)%\Mozilla Firefox\" copy /Y
"%~dp0autoconfig.js" "%programfiles(x86)%\Mozilla
Firefox\defaults\pref"
if exist "%programfiles(x86)%\Mozilla Firefox\" copy /Y
"%~dp0mozilla.cfg" "%programfiles(x86)%\Mozilla Firefox\"
*Firefox.ini: *
[Install]
QuickLaunchShortcut=true
DesktopShortcut=true
StartMenuShortcuts=true
MaintenanceService=false
*Override.ini: *
[XRE]
EnableProfileMigrator=0
*Autoconfig.js: *
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
*Mozilla.cfg: *
// Disable updater
lockPref("app.update.enabled", false);
// make absolutely sure it is really off
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);
// Disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
/// Disable Pocket /
/user_pref("browser.pocket.enabled", false); /
///user_pref("browser.toolbarbuttons.introduced.pocket-button",
false); /
// Disable Add-ons compatibility checking
clearPref("extensions.lastAppVersion");
// Don't show 'know your rights' on first run
pref("browser.rights.3.shown", true);
// Don't show WhatsNew on first run after every update
pref("browser.startup.homepage_override.mstone","ignore");
// Set default homepage - users can change
//pref("browser.startup.homepage", "https://www.google.com"
<https://www.google.com>);
// Disable the internal PDF viewer
pref("pdfjs.disabled", true);
// Disable the flash to javascript converter
pref("shumway.disabled", true);
// Don't ask to install the Flash plugin
pref("plugins.notifyMissingFlash", false);
//Disable plugin checking
lockPref("plugins.hide_infobar_for_outdated_plugin", true);
clearPref("plugins.update.url");
// Disable health reporter
lockPref("datareporting.healthreport.service.enabled", false);
// Disable all data upload (Telemetry and FHR)
lockPref("datareporting.policy.dataSubmissionEnabled", false);
// disables the request to send performance data from displaying
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
// Disable crash reporter
lockPref("toolkit.crashreporter.enabled", false);
Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports
= false;
// Disable URL "trimming" (e.g. hiding 'http:')
pref("browser.urlbar.trimURLs", false);
// Set Google as default search provider
pref("browser.search.geoSpecificDefaults", false);
pref("browser.search.defaultenginename.US",
"data:text/plain,browser.search.defaultenginename.US=Google");
*From:*Enterprise [mailto:[email protected]] *On
Behalf Of *Kaply Consulting
*Sent:* Friday, March 11, 2016 7:27 PM
*To:* [email protected] <mailto:[email protected]>
*Subject:* [SPAM-Keyword] - Re: [Mozilla Enterprise] Firefox 45ESR
- deployment
On 3/11/16 5:05 PM, Tim Van Dyne wrote:
Normally when we deploy Firefox ESR we have modified some
things in the browser because our management tells us to do so.
In 45, the way Pocket and Search Engines have been implemented
is different. I’ve made a variety of attempts to disable
Pocket and remove all except google.com and bing.com from the
search engine list but have not been successful.
With 38ESR we were able to simply use userChrome.css to remove
Pocket with a few lines, and remove the search engine .xml
files and be done.
How can this be handled with Firefox 45ESR?
You can set the preference pocket.enabled to false and it will
disable pocket.
Removing search engines will require some code unfortunately. It
was done this way to prevent search hijacking.
Mike
_______________________________________________
Enterprise mailing list
[email protected] <mailto:[email protected]>
https://mail.mozilla.org/listinfo/enterprise
To unsubscribe from this list, please visithttps://mail.mozilla.org/listinfo/enterprise or
send an email [email protected] <mailto:[email protected]>
with a subject of "unsubscribe"
--
Mike Kaply - Kaply Consulting in Austin, TX
Sign up for my newsletter -http://mike.kaply.com/email/
http://mike.kaply.com |http://www.linkedin.com/in/mkaply
_______________________________________________
Enterprise mailing list
[email protected] <mailto:[email protected]>
https://mail.mozilla.org/listinfo/enterprise
To unsubscribe from this list, please visithttps://mail.mozilla.org/listinfo/enterprise or
send an email [email protected] <mailto:[email protected]>
with a subject of "unsubscribe"
--
Mike Kaply - Kaply Consulting in Austin, TX
Sign up for my newsletter -http://mike.kaply.com/email/
http://mike.kaply.com |http://www.linkedin.com/in/mkaply
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise
To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise
or send an email to [email protected] with a subject of
"unsubscribe"
--
Mike Kaply - Kaply Consulting in Austin, TX
Sign up for my newsletter - http://mike.kaply.com/email/
http://mike.kaply.com | http://www.linkedin.com/in/mkaply
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise
To unsubscribe from this list, please visit
https://mail.mozilla.org/listinfo/enterprise or send an email to
[email protected] with a subject of "unsubscribe"