This test checks for a regression against rdar://problem/4151132 REGRESSION: Some applet liveconnect calls throws privilege exception..

To test:

  1. Disable popup blocking.
  2. Select the window titled "popup window."
  3. From the debug menu, select "Show JavaScript console." This will allow you to see errors thrown in the popup window by the Java Virtual Machine. If there are any, the test has failed.
  4. If the text in the popup window does not match the text below, the test has failed:
    applet.field returned 1
    incremented applet.field by 1
    applet.field returned 2
    applet.method() returned 1
  5. Otherwise, the test has passed.