https://bugs.webkit.org/show_bug.cgi?id=191199
Reviewed by Dewei Zhu.
Navigate the subframe instead of the main frame, to make sure that the console message is consistently logged.
* http/tests/security/anchor-download-block-crossorigin-expected.txt:
* http/tests/security/anchor-download-block-crossorigin.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237760
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2018-11-02 Chris Dumez <cdumez@apple.com>
+
+ REGRESSION (r237699): Layout Test http/tests/security/anchor-download-block-crossorigin.html is a flaky failure
+ https://bugs.webkit.org/show_bug.cgi?id=191199
+
+ Reviewed by Dewei Zhu.
+
+ Navigate the subframe instead of the main frame, to make sure that the console message is consistently logged.
+
+ * http/tests/security/anchor-download-block-crossorigin-expected.txt:
+ * http/tests/security/anchor-download-block-crossorigin.html:
+
2018-11-02 Per Arne Vollan <pvollan@apple.com>
[Win] Layout Test fast/block/basic/inline-content-with-floating-image.html is failing
-CONSOLE MESSAGE: line 24: The download attribute on anchor was ignored because its href URL has a different security origin.
-PASS
+CONSOLE MESSAGE: line 25: The download attribute on anchor was ignored because its href URL has a different security origin.
+Tests that the download attribute is ignored if the link is cross origin.
+
+It should navigate the subframe instead of downloading the file.
+
+
<body>
<p>
Tests that the download attribute is ignored if
-<a id="dl" href="http://localhost:8080/resources/pass-notify-done.html" download="FAIL.pdf">the link</a> is cross origin.
+<a id="dl" href="http://localhost:8080/resources/pass-notify-done.html" download="FAIL.pdf" target="targetFrame">the link</a> is cross origin.
<p>
-It should navigate instead of downloading the file.
+<p>It should navigate the subframe instead of downloading the file.</p>
+<iframe name="targetFrame"></iframe>
<script>
function click(elmt)
{
var link = document.getElementById("dl");
click(link);
}
- runTest();
+ onload = runTest;
</script>
</body>
</html>