[ Mac WK2 ] Layout Test http/tests/security/contentSecurityPolicy/block-all-mixed...
[WebKit-https.git] / LayoutTests / http / tests / security / contentSecurityPolicy / block-all-mixed-content / resources / frame-with-insecure-image-with-enforced-and-report-policies.php
index da02351..25d1a51 100644 (file)
@@ -8,6 +8,9 @@
 <script src="dump-securitypolicyviolation-and-notify-done.js"></script>
 </head>
 <body>
-<img src="http://127.0.0.1:8000/security/resources/compass.jpg">
+<script>
+// Use document.write() to bypass the HTMLPreloadScanner and address flakiness.
+document.write('<img src="http://127.0.0.1:8000/security/resources/compass.jpg">');
+</script>
 </body>
 </html>