summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/liveconnect-security-exception.html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-06 11:45:16 +0100
committerSteve Block <steveblock@google.com>2011-05-12 13:44:10 +0100
commitcad810f21b803229eb11403f9209855525a25d57 (patch)
tree29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /Source/WebCore/manual-tests/liveconnect-security-exception.html
parent121b0cf4517156d0ac5111caf9830c51b69bae8f (diff)
downloadexternal_webkit-cad810f21b803229eb11403f9209855525a25d57.zip
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'Source/WebCore/manual-tests/liveconnect-security-exception.html')
-rw-r--r--Source/WebCore/manual-tests/liveconnect-security-exception.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/liveconnect-security-exception.html b/Source/WebCore/manual-tests/liveconnect-security-exception.html
new file mode 100644
index 0000000..8bce752
--- /dev/null
+++ b/Source/WebCore/manual-tests/liveconnect-security-exception.html
@@ -0,0 +1,32 @@
+<html>
+<head>
+<!--
+Sorry for the hackery in this test. Currently, we have no elegant way to
+catch Java errors and print out an intelligent response.
+-->
+
+<script>
+function loadApplet() {
+ // force Safari to load and cache the TestApplet class
+ document.getElementById('applet').method();
+}
+</script>
+</head>
+<body onload="loadApplet();window.open('resources/liveconnect-security-exception-popup.html', 'w', 'height=300, width=300');">
+<p>This test checks for a regression against <i>rdar://problem/4151132 REGRESSION: Some applet liveconnect calls throws privilege exception.</i>.</p>
+<p>To test:</p>
+<ol>
+<li>Disable popup blocking.</li>
+<li>Select the window titled "popup window."</li>
+<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>
+<li>If the text in the popup window does not match the text below, the test has failed:<br>
+applet.field returned 1<br>
+incremented applet.field by 1<br>
+applet.field returned 2<br>
+applet.method() returned 1<br>
+</li>
+<li>Otherwise, the test has passed.</li>
+</ol>
+<applet id='applet' code="TestApplet.class" codebase="resources"></applet>
+</body>
+</html>