Closed Bug 509484 Opened 17 years ago Closed 15 years ago

Applet with dialog breaks focus cycle for subsequent text components

Categories

(Firefox :: General, defect)

x86
macOS
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: rkunkel, Unassigned)

Details

(Whiteboard: [CLOSEME 2010-12-01])

Attachments

(3 files)

581 bytes, application/octet-stream
Details
453 bytes, text/html
Details
1.89 KB, application/x-java-archive
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 I have an applet that opens a dialog. The page that contains the applet has an input field of type=text. If I open the dialog and then close it, the html text component can never regain the focus. Namely, one cannot insert text into it. In addition, the browser's address bar is also non-editable. To recover one must open a new Firefox window and then close it. Afterward, the original Firefox window will operate normally. Reproducible: Always Steps to Reproduce: 1. Open the attached TestApplet.html file. It will display a text field and a button labeled "start". 2. Click the button. A dialog will be displayed with nothing in it. 3. Close the dialog. 4. The text field nor the address bar are editable. 5. Go to "File/New Window" to bring up a new FireFox window. 6. Close the new window. 7. Note that the original window now behaves properly. Actual Results: Focus cycle appears to be disrupted in that text components on the browser window are not editable. I am attaching the source, TestApplet.java, an html file and a .jar, containing a compiled version of the .java file. You will note that when the dialog is instantiated, it is given a parent component of (new JFrame()). Prior to the introduction of FF 3.5, I used to pass in the "parent" frame of the applet, acquired from this method... private Window getMainWindowComp() { Container c = this; while (c != null) { if (c instanceof Window) { if (c instanceof Frame) { break; } c = null; break; } c = c.getParent(); } return((Window)c); } After FF 3.5 came out, the dialog in my "real" application was broken. It contained JTextFields that would never acquire focus. By accident I discovered that replacing the parent with an anonymous JFrame cured that problem. But with the side affect I am reporting here.
Attached file .java source file —
Attached file html source —
Attached file jar file —
I should add that text components in other tabs within the same browser window also loose the ability to gain focus. You must create a new browser window to work around this problem.
Reporter, please retest with Firefox 3.6.12 or later in a fresh profile (http://support.mozilla.com/kb/Managing+profiles). Also update your plugins (flash, adobe reader, java, quicktime, silverlight, etc.) Go to the developer's website and download the latest version from there. If you no longer see this issue, please close this bug as RESOLVED, WORKSFORME. If you do see the bug, please post a comment.
Whiteboard: [CLOSEME 2010-12-01]
No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: