summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/auth/iframe.php
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/auth/iframe.php')
-rw-r--r--LayoutTests/http/tests/appcache/resources/auth/iframe.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/auth/iframe.php b/LayoutTests/http/tests/appcache/resources/auth/iframe.php
new file mode 100644
index 0000000..7e5d30d
--- /dev/null
+++ b/LayoutTests/http/tests/appcache/resources/auth/iframe.php
@@ -0,0 +1,16 @@
+<?php
+ if (!isset($_SERVER['PHP_AUTH_USER'])) {
+ header('WWW-Authenticate: Basic realm="WebKit AppCache Test Realm"');
+ header('HTTP/1.0 401 Unauthorized');
+ echo 'Authentication canceled';
+ exit;
+ } else {
+ echo "<html manifest='manifest.php'>\n";
+ echo "<p>Subframe, should disappear.</p>\n";
+ echo "<script>\n";
+ echo " applicationCache.oncached = parent.success;\n";
+ echo " applicationCache.onnoupdate = parent.success;\n";
+ echo "</script>\n";
+ echo "</html>\n";
+ }
+?>