Closed Bug 497412 Opened 16 years ago Closed 16 years ago

Mouse-move tracking issues in Java modal dialog

Categories

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

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 495278

People

(Reporter: rkunkel, Assigned: smichaud)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 With FF 3.5, java applets have numerous focus related issues. Including, custom cursors do not work properly, tooltips do not work properly, mouse events not propogated properly. The attached source code demonstrates the problem. This code will display a modal dialog. When run using FF 3.0.7, for example, cursor is changed to "pencil.png" image when mousing over the dialog. A tooltip is displayed when hovering over the button on the dialog. Mouse entered and clicked events properly received. This behavior continues consistently after various mouse clicks on and off the dialog. However, when using FF 3.5, it doesn't go so well. The cursor is not changed, and no tooltip appears over the button. Mouse entered event is not detected UNLESS, you click somewhere else on the browser, then move the mouse back over the dialog. But as soon as you click on the dialog, you lose the event handling again. If you then reload the applet, initially things appear ok, you get the custom cursor, the tooltip, etc. However, as soon as you click anywhere on the dialog, things break again. Reproducible: Always Steps to Reproduce: 1.put the attached java code into a file called TestApplet.java 2.run "javac TestApplet.java" 3.run "jar cvf apptest.jar *.class pencil.png" // to archive the code and cursor image file. 4.start FF3.5 and open the attached html which will start the applet Actual Results: As described in "Details" Expected Results: Code should be have the same in FF3.5 as it does in 3.0.7 and other pre 3.5 releases. code sample will be added..
Attached file java source for test case (obsolete) —
Attached file html to run the applet (obsolete) —
Attached image png file for the custom cursor image (obsolete) —
Ronald, which version of the Java embedding plugin are you using?
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → 1.9.1 Branch
Henrik, We are currently using 1.5.0_19 (the latest) but I have seen it on the previous version as well.
Attached file testcase
This is a single file testcase to download. Just extract and open the testcase.htm file.
Attachment #382559 - Attachment is obsolete: true
Attachment #382561 - Attachment is obsolete: true
Attachment #382562 - Attachment is obsolete: true
(In reply to comment #5) > Henrik, We are currently using 1.5.0_19 (the latest) but I have seen it on the > previous version as well. No. I don't mean the Java version. Please open the addons manager and select the plugins tab. Which version has the Java Embedding Plugin? It's working fine for me with 0.9.7, Java 1.6 u13 and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090617 Shiretoko/3.5pre ID:20090617031317
To find which version of the Java Embedding Plugin you're using (on the Mac), visit "about:plugins" and scroll down until you see "Java Embedding Plugin" and a version number. Or use Henrik's method. I'll get to your testcase as soon as possible (probably in the next few days). In the meantime: Do these problems also happen with FF 3.5b99 (or RC1) on Windows or Linux? Do they also happen with current FF 3.0.X nightlies? (ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla1.9.0/firefox-3.0.12pre.en-US.mac.dmg)
The version of java embedding plugin is 0.9.7.1, with MRJ Plugin version 1.0-JEP-0.9.7.1. This problem does not occur with 3.5 on windows. I don't have a linux box on which to test unfortunately. On the Mac I've seen it with both 3.5b99 and rc1. It does not happen with any of the 3.0.x up through 11, but I will try the nightly and provide an update as to whether it occurs there...
The problem does NOT occur with the 3.0.12 nightly. I still see the same problem when using Henrik's test code with 3.5, but not with 3.0.12
Today's FF 3.0.12 nightly should bundle JEP 0.9.7.2 (the latest version of the JEP). Please check that it does. Then try replacing FF 3.5b99's and 3.5RC1's bundled JEP 0.9.7.1 with JEP 0.9.7.2. Here's how to do that: Download JEP 0.9.7.2 from http://javaplugin.sourceforge.net/. Install it (JavaEmbeddingPlugin.bundle and MRJPlugin.plugin) to your /Library/Internet Plug-Ins/ folder. Then remove the older copies of the JEP from the FF 3.5b99 and 3.5RC1 distros (from their Contents/MacOS/plugins directories). For more information see the JEP Readme (http://javaplugin.sourceforge.net/Readme.html).
Thanks! this seems to be working, but I'll do some more testing just to be sure. When FF3.5 is released will it be bundled with JEP 0.9.7.2 or will we have to go through this separate install procedure?
> Thanks! this seems to be working, but I'll do some more testing just > to be sure. You're most welcome. I'm glad to hear it. > When FF3.5 is released will it be bundled with JEP 0.9.7.2 or will > we have to go through this separate install procedure? I hope JEP 0.9.7.2 will be bundled with the final release of FF 3.5, but that hasn't yet been decided (see bug 496187 for more info). As I said above, I'll test your testcase later (probably this weekend). But it's conceivable that I, like Henrik, won't be able to reproduce your problems. If so, we'll need to get more test results from you. In particular, I need to pin down whether or not your problems are the result of one or more bugs in JEP 0.9.7.1. If this is true, then making Firefox (3.0.11, 3.0.12-nightly, 3.5 RC1 and 3.5-nightly (aka 1.9.1-branch nightly)) use JEP 0.9.7.1 should make the problems recur, and making these Firefox distros use JEP 0.9.7.2 should make them go away again. The more convincing a case I can make that JEP 0.9.7.2 fixes this bug, the more likely we can get it into the FF 3.5 release. Side note: It's an old version of the JEP (0.9.6.4) that comes bundled with FF 3.0.11.
Ronald, I can confirm your report ... though things aren't exactly as you describe. When you first load or reload the applet the modal window comes up and is made key. Often you don't see the bug(s) at this point. This is presumably what happened to Henrik. But if you click on another window (or the desktop), then back on the applet's modal window, you always see the bugs. Of which there are two: 1) the mouse cursor doesn't change into a pencil when you mouse over the modal dialog; 2) you don't see a tooltip when you hover the mouse cursor over the Button button. I've also confirmed that this is a bug in JEP 0.9.7/0.9.7.1, and that it's fixed in JEP 0.9.7.2. This bug has the same cause as bug 495278, and is more-or-less a dup.
Assignee: nobody → smichaud
Status: UNCONFIRMED → NEW
Component: Plug-ins → Java Embedding Plugin
Ever confirmed: true
QA Contact: plugins → java.jep
Version: 1.9.1 Branch → unspecified
Summary: java applets have numerous focus related issues → Mouse-move tracking issues in Java modal dialog
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Depends on: 496187
Component: Java Embedding Plugin → Java (Java Embedding Plugin)
Product: Core → Plugins
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: