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

Web page with a non-interactive applet is stealing focus from input fields.

    Details

    • Subcomponent:
    • Introduced In Version:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_10-beta"
      Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b23)
      Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      windows/XP

      A DESCRIPTION OF THE PROBLEM :
      Web page with a non-interactive applet is stealing focus for input fields. The <param name="initial_focus" value="false"> does not seem to be working. The problem only occurs when "the next generation Java plug-in" is disabled.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      create a class file of the java program attached.
      extract the html page attached.
      run the html page in Internet Explorer.
      Watch where focus is NOT.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Focus is on first input field of form.
      ACTUAL -
      Focus in NOT on first input field of form.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.applet.*;
      public class Myapplet extends Applet
      {
      public void init()
      {
      }
      public void destroy()
      {
      }
      public void start()
      {
      }
      public String getConfigParm()
      {
      return "abcd";
      }
      public void stop()
      {
      }
      }

      <html><title>Test</title>

      <body onLoad="mything()" bgcolor=green>
      <form name=myform>



      <applet code=Myapplet name=Myapplet width=0 height=0 >

      <param name="initial_focus" value="false">
      </applet>
      <script language="JavaScript">

      </script>


      <script language="JavaScript">

      function getLocalParms()
      {

      return Myapplet.getConfigParm();

      }

      </script>

      <script language="JavaScript">
      function mything()
      {

      document.myform.USERID.focus();

      }


      </script>



      <input type=text name="USERID" value="" maxlength=6 size=12>



      <br>
      Parms follow
      <br>
      <script language="JavaScript">
      document.write(Myapplet.getConfigParm());
      </script>
      <br>
      parms above

      </form>

      </body>
      </html>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      can't seem to find one!

      Release Regression From : 6u5
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

        Attachments

          Activity

            People

            • Assignee:
              ddehaven David Dehaven (Inactive)
              Reporter:
              ryeung Roger Yeung (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: