Closed Bug 411117 Opened 18 years ago Closed 11 years ago

Java Applet shows Button, which is set to visible false.

Categories

(Plugins Graveyard :: Java (Java Embedding Plugin), defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: bhavesh.patel, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2 Problem FireFox 3.0 beta 2, MAC OS 10.5.1, JRE Version 1.4.2_16. When a Java applet loads for first time, i have a JButton in applet (with no text on button just set icon, disable icon and size of the button), which is initially set to Visible and Enabled false, so that it will not be visible on applet load, but in FireFox 3.0 beta 2 it was shown / visible on applet load. This problem was happening only on FireFox 3.0b2 on MAC, with same JRE it was working fine on Safari Version 3.0.4 (523.12.2). Build Identifier: (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2) On Windows its working fine with FireFox 3.0b2 same JRE Version 1.4.2_16. Reproducible: Always Steps to Reproduce: 1. Just need to run a Java applet which has button visibility false, in Firefox 3.0b2. I have a existing application which fails on FireFox 3.0b2, so if asked i will write a sample applet code to reproduce. Actual Results: When applet load the Button is visible. (even in code it was set to Visible false) Expected Results: Button should not be visible. Button is set to visible false then it should not be visible.
Component: General → Java: OJI
Product: Firefox → Core
QA Contact: general → java.oji
Version: unspecified → Trunk
Severity: normal → blocker
Severity: blocker → major
Please post or attach the source code for a simple test-case Java applet.
UnZip "TestApplet.zip" and run "applet.html" in firefox on mac. Source code for applet is inside "ButtonVisible.jar"
Severity: major → critical
Severity: critical → major
I have attached the source code.
Sorry to take so long to respond -- I've been very busy with other things. I'm able to reproduce the problem you report, and have tracked it down to a particular method in the Jave Embedding Plugin -- enableDisabledComponents() in SimpleLayout.java. (The Java Embedding Plugin (aka the JEP) is bundled with all Mozilla.org browsers on OS X, and which allows them to use current versions of Java.) Not using that method gets rid of your problem. But, unfortunately, that method was included as a workaround for problems with the Java applets at the popular http://www.map24.com site, and the problems that it works around still persist (so getting rid of this method breaks the http://www.map24.com site). I will need to see if I can find another way to work around the problems with Map24.com. But that will probably take a while. In the meantime, I don't consider this problem particularly urgent. Yes, it's a bug. But it's existed in the JEP (and in Mozilla.org browsers) for several years, and you're the first one who's reported it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: major → minor
Assignee: nobody → smichaud
Component: Java: OJI → Java Embedding Plugin
QA Contact: java.oji → java.jep
Ok I have tried to put work around in my applet but it's like my applet have too much functionality so not got full work around to get complete rid off from the problem. As the problem is there in JEP, so can i expect it can be Fix / rectified in coming Firefox version.
Severity: minor → major
I will try to find time to work on this in the next few weeks. This problem won't be fixed in the Firefox 3 release. But (with luck) I may be able to fix it in time for one of the subsequent point releases (e.g. Firefox 3.0.0.1 or 3.0.0.2).
Please evaluate Bug 419824 ASAP because it blocks our application. https://bugzilla.mozilla.org/show_bug.cgi?id=419824
Component: Java Embedding Plugin → Java (Java Embedding Plugin)
Product: Core → Plugins
Version: Trunk → unspecified
The JEP is long gone.
Assignee: smichaud → nobody
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Product: Plugins → Plugins Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: