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

The applet can't be loaded successfully with Safari browser on MacOS

XMLWordPrintable

    • x86_64
    • os_x

      Testsuite: cookies in plugin
      Test name(s): cookiesScenarios/SecureConnectionCookieGetSetMixedIPTest.html
      Product(s) tested:Jre9b121/64bit
      OS/architecture: Mac10.10-x86_64
      Reproducible: Always
      Reproducible on machine:egtc

      Is it a Regression:
      [If Regression] Regression introduced in release/build:

      Test result on the last GAed release for this train:

      [if Fail] Test result on FCS:

      Is it a platform specific issue:

      Steps:

      1. Close browser session and clear deployment cache by running "javaws -uninstall"
      2. For JRE less than 8u20, security level to Medium level. For 8u20 and above add your machine_name and port inside the Exception Site list under Security tab of Java Control panel. For example if machine name is "jijising-pc" then ESL enteries will be https://jijising-pc:8443/ and http://jijising-pc:8080/
      3. Make sure that proxy connection is set to "none"
      4. Try to load test applet using following URL by replacing test_server_name with the host_name of machine under test. https://test_server_name:8443/cookies/html/testHTTPGetSetCookieMixedIPSecure.html
          For example if one is running test on jijising-pc then test URL will become https://jijising-pc:8443/cookies/html/testHTTPGetSetCookieMixedIPSecure.html
      5. Accept Security Warning from Browser e.g. on IE click "Continue to this website (not recommended)" while on Firefox click on "I Understand the Risks" followd by "Add Exception" and then "Confirm Security Exception"
      6. There should be Security Warning pop-up from Java since we are trying to make secure https connection. Accept the warning
      7. There should be Security warning dialog since applet is not signed. This dialog will be there for jdk version 7u11 and later. Click "Run" to accept. With JDK 7u21 and above dialog is going to be multi-click i.e. one need to first check the checkbox "I accept the risk...." in order to enable the "Run" button .But if ESL file (8u20 and above) is setup then this unsigned warning could not be Multi Click i.e. one can directly click on Run button
      8. For JRE version earlier then JRE8, make sure that applet is getting loaded fine and is not able to read secure cookies i.e. test can be marked as passed if cookie MyTestSecure=5 is not read by an applet. For JRE8 and above java.security.AccessControlException will be thrown by an applet.

      The actual result:
      At Step4: The applet can't be loaded successfully with Safari browser on MacOS. Please refer to cookies-failed.png.

      BTW:
      The same applet can be loaded successfully with IE browser on Windows System by using the same workspace.

            jijising Jitender Singh (Inactive)
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: