Closed Bug 164712 Opened 22 years ago Closed 21 years ago

LiveConnect broken on Mac OS X 10.2

Categories

(Core Graveyard :: Java: OJI, defect)

PowerPC
macOS
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0.2

People

(Reporter: beard, Assigned: beard)

References

Details

(Keywords: relnote, topembed+, Whiteboard: [adt1] [ETA 08/29])

Attachments

(2 files)

There are 2 blocking issues for LiveConnect on Jaguar. The first is that Apple
is shipping incompatible versions of our Java classes that provide wrappers for
JavaScript objects in Java:

netscape.javascript.JSObject.class
netscape.javascript.JSException.class
netscape.javascript.JSUtil.class

They are shipping them in

/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar

We are hoping to resolve this issue with them, very soon.

The second blocking issue is that they broke a Java class that we were relying
on to map a java applet to its plugin instance. I spoke with an Apple engineer
who provided me with a workaround that should work in both 10.1.x and 10.2.
Patch coming up.
*** Bug 164694 has been marked as a duplicate of this bug. ***
Marking this as [adt1]. Let's provide a means for which the user can recieve the
updated plugin for MachV, and check in the fix so that it is picked up in the
next release.
Blocks: 143047
Whiteboard: [adt1] [post MachV]
Target Milestone: --- → mozilla1.0.2
I've just release noted this. If my note is wrong I'd appreciate corrections [As
would any MacOSX10.2(Jaguar) user who tries Mozilla1.1]
/cvsroot/mozilla-org/html/releases/full-release-notes.shtml,v
new revision: 1.155; previous revision: 1.154
/cvsroot/mozilla-org/html/releases/mozilla1.1/index.html,v
new revision: 1.9; previous revision: 1.8
Comment on attachment 96748 [details] [diff] [review]
Workaround to obtain Java applet from applet viewer.

r=pink
Attachment #96748 - Flags: review+
Comment on attachment 96748 [details] [diff] [review]
Workaround to obtain Java applet from applet viewer.

sr=sfraser
Attachment #96748 - Flags: superreview+
Status: NEW → ASSIGNED
Fix checked into trunk.
Comment on attachment 96748 [details] [diff] [review]
Workaround to obtain Java applet from applet viewer.

a=chofmann for 1.0.2
Attachment #96748 - Flags: approval+
Fix checked into 1.0 branch.
Will the updated plugin be available from
ftp://ftp.mozilla.org/pub/OJI/MRJPlugin/ or
http://homepage.mac.com/pcbeard/MRJPlugin/ ? Or is there anywhere else I can get
it? 

Great work fixing LiveConnect, by the way!
Just to be clear, as Patrick noted in the initial comment for this bug, this
patch only fixes LiveConnect if the offending netscape.* classes are removed
from Apple's ui.jar file.  That issue still hasn't been resolved.
adt1.0.1+ (on ADT's behalf) approval for checkin to the 1.0 branch. pls check
this in asap, the replace "Mozilla1.0.1+" with "fixed1.0.1". [Using adt1.0.1
keywords as a proxy, since no adt1.0.2/edt1.0.2 keywords have been created for
the 1.0.1 branch]. thanks! 
Keywords: adt1.0.1adt1.0.1+
Whiteboard: [adt1] [post MachV] → [adt1] [ETA 08/29]
With this patch, our Java plugin will get the correct versions of the
netscape.javascript.* classes.
Comment on attachment 97256 [details] [diff] [review]
Prepends plugin classes to the system class path.

r=sdagley
Attachment #97256 - Flags: review+
Comment on attachment 97256 [details] [diff] [review]
Prepends plugin classes to the system class path.

rs=sfraser
Attachment #97256 - Flags: superreview+
Comment on attachment 97256 [details] [diff] [review]
Prepends plugin classes to the system class path.

a=chofmann for 1.0.2 on this one too...
Attachment #97256 - Flags: approval+
Comment on attachment 97256 [details] [diff] [review]
Prepends plugin classes to the system class path.

Patch checked into all relevant branches.
Has this landed on the trunk?

Marking as fixed1.0.2 per Comment #17 From Patrick C. Beard.

pmac: pls verify this as fixed on the 1.0 branch, then replace "fixed1.0.2" with
"verified1.0.2". thanks!
Is this on the trunk? SHould it be RESOLVED FIXED?
Please verify the bug. Once verified, change the keyword fixed1.0.2 to
verified1.0.2 
verified the patch.
Verified the patch on the trunk 
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verified.
Status: RESOLVED → VERIFIED
Need a testcase for this bug.
Proposed test case for LiveConnect:
http://www.simonstl.com/dynhtml/update/code/chap6/lc2.html
The source is available at
http://www.simonstl.com/dynhtml/update/code/chap6/lc2.java

Enter some text in the text box and click the SetString button. The text in the
applet above the text box should display the text you just entered. A Javascript
popup should also be displayed. 

The tests both JavaScript-to-Java and Java-to-JavaScript communication.
People,
	I need the magic trick to makes LiveConnect works on a Mac (OS X 10.2.6) with
1.3.1 or 1.4.1 (Mozilla is loading the 1.3.1). 
	The test case does not work with this combination!
Nicolas,

   You need to make sure you're using Patrick's MRJPlugin, and not Apple's Java
Plugin, because the latter doesn't support LiveConnect at all.  On the other
hand, I think that you can't use MRJPlugin with the mach-o build (NS7.1+, moz
1.3+).  There's various bugs about symptoms of that, but I can't find the bug
addressing that particular issue.  Another symptom of not shipping the MRJPlugin
with moz, is that there's no Java support on MacOSX 10.1, since the Apple plugin
only comes with 10.2 and later.

On the other hand, while Apple's plugin doesn't support LiveConnect, and also
doesn't enable the "Java Console" menu item, it does seem more stable, and has a
real Java Console (which you need to enable outside of Moz).

See bug 183852, or basically do a quick search for "mac java", and look through
those.

We really ought to have a single clear bug that documents this, and dup many of
the other reports to that..

Why or where is this thought to be fixed?

I have just downloaded Mozilla 1.5 onto a clean OS X system, 
and our tests say live connect does not work.  (The test cases
on this bug, by the way, are no longer accessible).

I see the comment on this bug from "Steve K" that I must be 
using "Patrick's MRJ".  And this morning, Google gives me a 
hint that in fact "Patrick's MRJ" may be different from the 
MRJ I found on the Mozilla site. So should I be going to
fetch that?  Nothing that came with the Mozilla download
suggests that I should.

I don't think you can call the bug fixed until Liveconnect will work
for someone who has the "normal" Mozilla installation.  Or at least
someone who has taken some conspicuously "official" upgrade or option.

And for the version that is currently shipping, that does not seem to be the case.

It does not matter that by correctly extrapolating from some hard
to find instructions will get a system into a state that will work.

    (The OS X files: the working combination is out there...)

If someone asks me if our applications will work on a Mac, the honest
answer is still "no".  There may be SOME macs where it works, but not
for the ones that will visit your web site.
 
And while that is the case, I don't see how you can call this bug "Fixed".
robert:

Patrick's MRJ plugin and the one from the mozilla site are the same thing
(perhaps slightly different versions.

Neither ship with Mozilla anymore (for Netscape, they only shipped with 7.0, I
think, not 6.x or 7.1).

At this point, since Mozilla doesn't ship with that plugin, it will always use
Apple's Java Plugin, which has shipped with MacOSX since 10.2.  Apple's Plugin
does not support LiveConnect.

So, while this bug _was_ fixed, it's not really fixed anymore, I guess.  The
solution, though, really ought to come from Apple, and they ought to make their
plugin support LiveConnect.  

Apple now has 2 Java Plugins; the 1.3.1 carbon plugin and the 1.4.1 Cocoa
plugin; I'm not sure what the API is for the Cocoa plugin is, but I don't think
Mozilla supports it, and I don't think that LiveConnect is supported even in
Safari using the 1.4.1 plugin.
Wilmot -- Was The Apple plugin for 1.4 updated for Mozilla/Netscape? What are
the current plans?

Patrick's new email is: pcbeard@mac.com
A more recent report on this problem is bug 219300,
"LiveConnect disabled on Mac OS X; Javascript cannot communicate with Java"

marked as a duplicate of bug 97613:
"build MRJ Plugin: navigator.javaEnabled() always returns false"
So if I am reading these comments about Apples Java right, the problem
is not so much FIXED as UNFIXABLE?

Mac Mozilla does not do liveconnect, and will not do so 
in the forseeable future?
reopening based on comments and summary: LiveConnect is still not working on OS X.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
This bug is fixed (it had patches go in and such).  Please don't reopen bugs
when the same symptoms are caused by a different underlying problem.

If you feel the need to have a bug tracking Apple's work on LiveConnect in our
bugzilla, feel free to open a separate bug on that in the tracking component or
something.
Status: REOPENED → RESOLVED
Closed: 22 years ago21 years ago
Resolution: --- → FIXED
Re-verifying.  LiveConnect is working for Java 1.3 under Mac OS X.3.4 with the updated 
MRJPlugin from bug 197813 so this one must be OK.

I'm also seeing . as the beginning of the library path, via 
  http://www.jensign.com/JavaScience/www/testsscert/
assuming this is evidence of the path fix in attachment 97256 [details] [diff] [review].
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: