Title: [187781] branches/safari-601.1.46-branch/LayoutTests

Diff

Modified: branches/safari-601.1.46-branch/LayoutTests/ChangeLog (187780 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/ChangeLog	2015-08-03 23:13:56 UTC (rev 187780)
+++ branches/safari-601.1.46-branch/LayoutTests/ChangeLog	2015-08-03 23:29:01 UTC (rev 187781)
@@ -1,3 +1,21 @@
+2015-08-03  Matthew Hanson  <matthew_han...@apple.com>
+
+        Merge r187752. rdar://problem/22098457
+
+    2015-08-03  Brady Eidson  <beid...@apple.com>
+
+            Adding a test for:
+            Crash when signing into twitter calling WebCore::DocumentLoader::responseReceived(WebCore::CachedResource*, WebCore::ResourceResponse const&).
+            <rdar://problem/22098457> and https://bugs.webkit.org/show_bug.cgi?id=147560
+
+            Reviewed by Alexey Proskuryakov.
+
+            * http/tests/appcache/identifier-test-expected.txt: Added.
+            * http/tests/appcache/identifier-test.html: Added.
+            * http/tests/appcache/resources/identifier-test-real.php: Added.
+            * http/tests/appcache/resources/identifier-test.manifest: Added.
+            * http/tests/appcache/resources/identifier-test.php: Added.
+
 2015-07-31  Lucas Forschler  <lforsch...@apple.com>
 
         Merge r187556

Added: branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test-expected.txt (0 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test-expected.txt	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test-expected.txt	2015-08-03 23:29:01 UTC (rev 187781)
@@ -0,0 +1,4 @@
+This page opens a test page in a new window, and that page should get app cached.
+This page then opens a different test page, that redirects to the first, which should then load from the app cache.
+If it doesn't crash, then that's success.
+

Added: branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test.html (0 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test.html	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/identifier-test.html	2015-08-03 23:29:01 UTC (rev 187781)
@@ -0,0 +1,28 @@
+<script>
+if (window.testRunner) {
+   testRunner.dumpAsText();
+   testRunner.waitUntilDone();
+   testRunner.setCanOpenWindows(true);
+}
+
+var numberDone = 0;
+
+function receiveMessage(event)
+{
+    if (++numberDone == 2) {
+        if (window.testRunner)
+            testRunner.notifyDone();
+        return;
+    }
+
+    window.open("http://localhost:8000/appcache/resources/identifier-test.php", "_blank");
+}
+
+window.addEventListener("message", receiveMessage, false);
+
+window.open("http://localhost:8000/appcache/resources/identifier-test-real.php", "_blank");
+
+</script>
+This page opens a test page in a new window, and that page should get app cached.<br>
+This page then opens a different test page, that redirects to the first, which should then load from the app cache.<br>
+If it doesn't crash, then that's success.<br>

Added: branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test-real.php (0 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test-real.php	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test-real.php	2015-08-03 23:29:01 UTC (rev 187781)
@@ -0,0 +1,17 @@
+<?php
+    header('X-Frame-Options: SAMEORIGIN');
+?>
+
+<html manifest="identifier-test.manifest">
+<script>
+
+function cached()
+{
+    window.opener.postMessage("Nice", "*");
+}
+
+applicationCache.addEventListener('cached', cached, false);
+applicationCache.addEventListener('noupdate', cached, false);
+
+</script>
+</html>

Added: branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.manifest (0 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.manifest	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.manifest	2015-08-03 23:29:01 UTC (rev 187781)
@@ -0,0 +1,2 @@
+CACHE MANIFEST
+abe.png

Added: branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.php (0 => 187781)


--- branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.php	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/http/tests/appcache/resources/identifier-test.php	2015-08-03 23:29:01 UTC (rev 187781)
@@ -0,0 +1,4 @@
+<?php
+    header('HTTP/1.1 307 Temporary Redirect');
+    header('Location: http://localhost:8000/appcache/resources/identifier-test-real.php');
+?>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to