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

JavaScript confirm dialogs lose focus when shown multiple times via an applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 5.0-pool
    • 5.0u17
    • deploy
    • x86
    • windows_vista

      Vista SP1 IE7 1.5.0_17

      If JavaScript dialog was shown multiple times using confirm() function via LiveConnect from
      an Applet, second and later dialogs lose focus. Users need to use mouse, etc to activate the
      dialog to press OK or cancel.

      If we do the same thing using html and javascript only, then we don't see the issue. Confirm
      dialogs have focus and we can press default button by space or return key.

      This did not happen with XP + IE6.
      If we use FireFox3.5 on Vista SP1, the problem does not happen. Users can press default
      button on the dialog by space key or enter key without using pointing device since the
      dialog has focus.

      If I use 1.5.0_18 and later, I don't see the problem.

      The symptom is similar to the following issue fixed in 1.5.0_18, though the actual operations
      are different.


       6643769 Applet main windows steals focus on Popup windows which is running Applet.

      Due to the maintenance policy at the end user's site, my customer needs to narrow down the
      cause and get the proper fix back-ported to older release (custom revision).

            coffeys Sean Coffey
            ytoshima Yoshinori Toshima
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: