http/tests/preload/viewport/meta-viewport-link-headers.php is a flaky failure on iOS Simulator WK2 according to the flakiness dashboard:
@@ -1,3 +1,3 @@
-PASS Makes sure that Link headers support the media attribute and respond to <meta content=viewport>
+FAIL Makes sure that Link headers support the media attribute and respond to <meta content=viewport> assert_true: The control element should be loaded expected true got false
This test was thought to be fixed in https://bugs.webkit.org/show_bug.cgi?id=172518 but it looks like the fix did not work.
Yoav, would you be willing to take a look? Apparently the fix in bug 172518 wasn't sufficient.
I don't know if that's the cause of flakiness, but this test uses a common anti-pattern.
The test starts before the document is completely loaded, so loading the image races with completing the document load. The assignment to img.src should happen no earlier than window.onload.
Also, instead of waiting for a second, the test can use shouldBecomeTrue from WebKit test harness (or an equivalent from W3C harness if it exists).
Looking at the test, it might be missing a return after line 34.
As of the 1 second thing, since it is polling repetitively several times, I don't think there is an issue there.
It only polls for one second, and the load may not complete so quickly.
Marked test as flaky in https://trac.webkit.org/changeset/224355/webkit