This test checks for a regression against rdar://problem/4151132 REGRESSION: Some applet liveconnect calls throws privilege exception..
To test:
- Disable popup blocking.
- Select the window titled "popup window."
- 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.
- 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
- Otherwise, the test has passed.