Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Mozilla Firefox: globally disabling java for all users

3 views
Skip to first unread message

Mark Hobley

unread,
Aug 18, 2009, 1:08:03 AM8/18/09
to
Mark Hobley <markh...@hotpop.donottypethisbit.com> wrote:
> Are you sure this can't be done via configuration files?

Mike Hommey has provided the following information:

Put a .js file in /etc/iceweasel/prefs containing the following:
pref("security.,enable_java", false);

You can even prevent users to enable it later by replacing "pref" with
"lockPref".

I tried adding the following line to :/etc/iceweasel/pref/iceweasel.js,
but the option still appears to be controllable by the end user, so maybe I
did something wrong:

lockPref("security.,enable_java", false);

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

Allen Kistler

unread,
Aug 18, 2009, 3:11:43 AM8/18/09
to
Mark Hobley wrote:
> Mark Hobley <markh...@hotpop.donottypethisbit.com> wrote:
>> Are you sure this can't be done via configuration files?
>
> Mike Hommey has provided the following information:
>
> Put a .js file in /etc/iceweasel/prefs containing the following:
> pref("security.,enable_java", false);
>
> You can even prevent users to enable it later by replacing "pref" with
> "lockPref".
>
> I tried adding the following line to :/etc/iceweasel/pref/iceweasel.js,
> but the option still appears to be controllable by the end user, so maybe I
> did something wrong:
>
> lockPref("security.,enable_java", false);

Perhaps IceWeasel uses /usr/lib/iceweasel-<build>.

cf. http://kb.mozillazine.org/Locking_preferences
http://kb.mozillazine.org/Installation_directory

Also the "," in security.enable_java is a typo.

Mark Hobley

unread,
Aug 18, 2009, 6:08:02 AM8/18/09
to
In comp.infosystems.www.browsers.x Allen Kistler <acki...@oohay.moc> wrote:

> Also the "," in security.enable_java is a typo.

Yeah, I removed the comma, and it works. Cheers Allen.

I am trying to do the same with mozilla-browser now, which I use one some
machines, because it has composer built in. This time I added the same
line to the /etc/iceape/pref/base.js configuration file:

// Disable java
lockPref("security.enable_java", false);

0 new messages