Closed Bug 592250 Opened 14 years ago Closed 14 years ago

Live Connect broken ("java" not defined)

Categories

(Core Graveyard :: Plug-ins, defect)

x86
All
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 563891

People

(Reporter: thomas.comiotto, Unassigned)

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b4) Gecko/20100818 Firefox/4.0b4
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0b4) Gecko/20100818 Firefox/4.0b4

Live Connect is broken. The globals "java" and "Packages" are not defined. 
 
See https://developer.mozilla.org/en/java_in_firefox_extensions for how it worked in 3.X.

This regression breaks all Firefox extensions that use java. Bug could also go to "Extension Compatibility". 

Live Connect issues just keep coming back every major release:(


Reproducible: Always

Steps to Reproduce:
1. Open Web Console
2. Type alert(java);
Actual Results:  
Error: java not defined

Expected Results:  
Java defined
Component: General → Java: Live Connect
Product: Firefox → Core
QA Contact: general → live-connect
Even if deprecated by Sun specs, the "java" and "Packages" globals were still functional in 1.9.X (up to FF 3.6) and the MDC docs are full of examples using them. 
 
https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/LiveConnect_Overview

The Sun spec has only code snippets that work with an applet, so I guess the idea is to include a html applet in XUL when using LiveConnect in FF4 extensions? 

Can you confirm that applets are mandatory? If so I hope someone fixes the MDC docs. 

In any case, extensions like FireGoose or PiggyBank are currently broken in FF4:
https://bugzilla.mozilla.org/show_bug.cgi?id=442399 
https://developer.mozilla.org/en/java_in_firefox_extensions
The liveconnect change happened in Gecko1.9.2 and that is FF3.6.x and it should not be the cause if it works in FF3.6.x

I can confirm that I get an error with Firefox 4.0b4:
Fehler: java is not defined
Quelldatei: javascript:alert(java);

but it works (!) with Mozilla/5.0 (Windows NT 6.1; rv:2.0b5pre) Gecko/20100830 SeaMonkey/2.1b1pre and Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers

I get an "Java Package "java"] " alert
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Linux → All
Product: Core → Core Graveyard
Why has this been moved to the "Core Graveyard" component? 

It's needed for java in Firefox extensions.

If support for the java/Packages globals is to be dropped at least change the misleading docs @mdc.
Component: Java: Live Connect → Plug-ins
Product: Core Graveyard → Core
QA Contact: live-connect → plugins
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.