Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6869937

New Plugin - Vista&XP Focus never returned to browser

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic
    • OS:
      generic, windows_vista
    • Verification:
      Verified

      Backports

        Description

        Ephox sent the test case to us at /net/cores.central.sun.com/cores/71413024

        Here is the reproducible steps

        - Open dist/testPage.html and click the button to raise a liveconnect call to the applet.
        - A dialog should appear for a few seconds then be disposed.
        - From this point on, clicking in the textbox on the page will not place the caret in this field.

        I can replicate the problem with JRE 6 update 10, 11, 12, 13, 14 and 15. I can also replicate the problem on JRE 1.5.0_19 and JRE 1.5.0_17. I cannot replicate the problem with JRE 6 update 7.

        If I switch to classic plugin on vista and XP issue goes away.

        In the customer's code, I noticed

        public void setVisible(boolean visible, Runnable runner) {
                if (visible && !isVisible()) {
                    new Thread(runner).start();
                }
               
                super.setVisible(visible);
            }

        The new thread spins another thread so the drawing code is not on the EDT anymore when cu calls _dialog.dispose();

        I ran jstack against Firefox and java when the problem happens. Please see attached

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vchoudhaorcl Vaibhav Choudhary (Inactive)
                  Reporter:
                  helai Herrick Lai (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: