Closed Bug 717473 Opened 12 years ago Closed 12 years ago

[10.7] "Java Plugin 2" is "Java Applet Plug-in" on Lion

Categories

(Camino Graveyard :: Preferences, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: alqahira)

Details

(Whiteboard: [camino-2.1.1])

Attachments

(1 file)

When I was trying to figure out possible bugs to explain why philippe's configure was failing on 10.7, I came across bug 651618.

We don't ever check the filename, but we do check the user-friendly name: 
http://mxr.mozilla.org/camino/source/camino/src/preferences/PreferenceManager.mm#93
http://mxr.mozilla.org/camino/source/camino/src/preferences/PreferenceManager.mm#1340

We need to check for the new name, too (or go through the hassle of mentioned in the comment:

// Ideally Java would be detected by MIME type, but nsIPluginTag doesn't
// expose MIME types, making it more trouble than it's worth.

When Stuart wrote that, he hadn't yet written javaPluginCanBeEnabled.  I'm really not sure of the differences between the purposes of these checks now.  :confused:)
Flags: camino2.1.1?
Oh, but that name might also have been the name of the old Java 1.3 plug-in; we'd need to check on 10.4 to see if that plug-in still existed and if Gecko still tried to load it…
(In reply to Smokey Ardisson (not following bugs - do not email) from comment #0)
> When Stuart wrote that, he hadn't yet written javaPluginCanBeEnabled.  I'm
> really not sure of the differences between the purposes of these checks now.
> :confused:)

javaPluginCanBeEnabled tells us if there is a Java plugin, and thus whether the checkbox should be enabled. pluginShouldBeDisabled: tells us if a specific plugin should be enabled or not (based on the UI for Java, and the hidden pref for everything else) so that we can sync the Gecko plugin system's state to the current user pref values (for when pluginreg.dat is nuked).
Attached patch FixSplinter Review
This adds the new 10.7 name.

I checked 10.4 (via cb-xserve01, with some difficulty); 2.1 no longer seems to load the old Java Applet.plugin, so I think we're good.  (On 10.3, the name was "Java Plug-in", so I think we were good on 10.4 even if it managed to load--but then again, Apple did rename a plug-in from 10.6 to 10.7 :P )
Assignee: nobody → alqahira
Status: NEW → ASSIGNED
Attachment #590130 - Flags: superreview?(stuart.morgan+bugzilla)
Comment on attachment 590130 [details] [diff] [review]
Fix

sr=smorgan
Attachment #590130 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
http://hg.mozilla.org/camino/rev/253810551ba1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: camino2.1.1? → camino2.1.1+
Resolution: --- → FIXED
Whiteboard: [camino-2.1.1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: