http/tests/contentfiltering/load-substitute-data-from-appcache.html crashes sometimes
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2015 04:26:43 +0000 (04:26 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Sep 2015 04:26:43 +0000 (04:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148890

Reviewed by Alexey Proskuryakov.

Added a test to verify my theory that load-substitute-data-from-appcache.html will crash even with Content Filtering disabled.

* TestExpectations: Skipped the new test since it only works in WebKit2.
* http/tests/appcache/decide-navigation-policy-after-delay-expected.txt: Added.
* http/tests/appcache/decide-navigation-policy-after-delay.html: Added.
* http/tests/appcache/resources/decide-navigation-policy-after-delay-frame.html: Added.
* platform/wk2/TestExpectations: Enabled the test in WebKit2.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190041 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay.html [new file with mode: 0644]
LayoutTests/http/tests/appcache/resources/decide-navigation-policy-after-delay-frame.html [new file with mode: 0644]
LayoutTests/platform/wk2/TestExpectations

index b1dbf61..9bbfc8b 100644 (file)
@@ -1,3 +1,18 @@
+2015-09-20  Andy Estes  <aestes@apple.com>
+
+        http/tests/contentfiltering/load-substitute-data-from-appcache.html crashes sometimes
+        https://bugs.webkit.org/show_bug.cgi?id=148890
+
+        Reviewed by Alexey Proskuryakov.
+
+        Added a test to verify my theory that load-substitute-data-from-appcache.html will crash even with Content Filtering disabled.
+
+        * TestExpectations: Skipped the new test since it only works in WebKit2.
+        * http/tests/appcache/decide-navigation-policy-after-delay-expected.txt: Added.
+        * http/tests/appcache/decide-navigation-policy-after-delay.html: Added.
+        * http/tests/appcache/resources/decide-navigation-policy-after-delay-frame.html: Added.
+        * platform/wk2/TestExpectations: Enabled the test in WebKit2.
+
 2015-09-20  Chris Dumez  <cdumez@apple.com>
 
         Unreviewed, rebaseline W3C HTML DOM test on iOS after r190030.
index 092bbc9..ddfe3e7 100644 (file)
@@ -36,6 +36,9 @@ fast/events/mouse-force-up.html [ Skip ]
 # Only iOS supports QuickLook
 quicklook [ Skip ]
 
+# This test is WebKit2-only
+http/tests/appcache/decide-navigation-policy-after-delay.html [ Skip ]
+
 #//////////////////////////////////////////////////////////////////////////////////////////
 # End platform-specific tests.
 #//////////////////////////////////////////////////////////////////////////////////////////
diff --git a/LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay-expected.txt b/LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay-expected.txt
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay.html b/LayoutTests/http/tests/appcache/decide-navigation-policy-after-delay.html
new file mode 100644 (file)
index 0000000..2dd1a53
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+    testRunner.setShouldDecideNavigationPolicyAfterDelay(true);
+}
+
+window.addEventListener("message", function() {
+    frames[0].location = "/resources/redirect.php?url=/appcache/resources/decide-navigation-policy-after-delay-frame.html";
+});
+</script>
+<body>
+<iframe src="/appcache/resources/decide-navigation-policy-after-delay-frame.html"></iframe>
+</body>
+</html>
diff --git a/LayoutTests/http/tests/appcache/resources/decide-navigation-policy-after-delay-frame.html b/LayoutTests/http/tests/appcache/resources/decide-navigation-policy-after-delay-frame.html
new file mode 100644 (file)
index 0000000..2ab7c90
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html manifest="empty.manifest">
+<script>
+applicationCache.onnoupdate = function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}
+
+applicationCache.oncached = function() {
+    parent.postMessage("cached", "*");
+}
+</script>
+</html>
index 18b67a7..3ba76a4 100644 (file)
@@ -722,6 +722,8 @@ webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-same-origin
 fast/images/animated-gif-no-layout.html [ Pass ]
 fast/images/gif-loop-count.html [ Pass ]
 
+http/tests/appcache/decide-navigation-policy-after-delay.html [ Pass ]
+
 ### END OF (5) Progressions, expected successes that are expected failures in WebKit1.
 ########################################