Crash when following a Google search link to Twitter with Limit Adult Content enabled
[WebKit-https.git] / LayoutTests / http / tests / contentfiltering / load-substitute-data-from-appcache.html
1 <!DOCTYPE html>
2 <script>
3 if (window.internals) {
4     var settings = window.internals.mockContentFilterSettings;
5     settings.enabled = true;
6     settings.decisionPoint = settings.DECISION_POINT_AFTER_ADD_DATA;
7     settings.decision = settings.DECISION_ALLOW;
8 }
9
10 if (window.testRunner) {
11     testRunner.dumpAsText();
12     testRunner.waitUntilDone();
13     testRunner.setShouldDecideNavigationPolicyAfterDelay(true);
14 }
15
16 window.addEventListener("message", function() {
17     frames[0].location = "/resources/redirect.php?url=/contentfiltering/resources/appcache.html";
18 });
19 </script>
20 <body>
21 <p>This is a regression test for <a href="https://bugs.webkit.org/show_bug.cgi?id=147651">webkit.org/b/147651</a>. The test passes if it does not crash.</p>
22 <iframe src="/contentfiltering/resources/appcache.html"></iframe>
23 </body>
24 </html>