4 Sorry for the hackery in this test. Currently, we have no elegant way to
5 catch Java errors and print out an intelligent response.
9 function loadApplet() {
10 // force Safari to load and cache the TestApplet class
11 document
.getElementById('applet').method();
15 <body onload=
"loadApplet();window.open('resources/liveconnect-security-exception-popup.html', 'w', 'height=300, width=300');">
16 <p>This test checks for a regression against
<i>rdar://problem/
4151132 REGRESSION: Some applet liveconnect calls throws privilege exception.
</i>.
</p>
19 <li>Disable popup blocking.
</li>
20 <li>Select the window titled
"popup window."</li>
21 <li>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.
</li>
22 <li>If the text in the popup window does not match the text below, the test has failed:
<br>
23 applet.field returned
1<br>
24 incremented applet.field by
1<br>
25 applet.field returned
2<br>
26 applet.method() returned
1<br>
28 <li>Otherwise, the test has passed.
</li>
30 <applet id='applet'
code=
"TestApplet.class" codebase=
"resources"></applet>