<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>178029</bug_id>
          
          <creation_ts>2017-10-06 14:46:28 -0700</creation_ts>
          <short_desc>[iOS] Layout Test http/tests/preload/viewport/meta-viewport-link-headers.php is flaky</short_desc>
          <delta_ts>2017-11-02 14:25:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=172518</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lewis">jlewis3</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>yoav</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1357743</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-10-06 14:46:28 -0700</bug_when>
    <thetext>http/tests/preload/viewport/meta-viewport-link-headers.php is a flaky failure on iOS Simulator WK2 according to the flakiness dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Fpreload%2Fviewport%2Fmeta-viewport-link-headers.php

build:
https://build.webkit.org/results/Apple%20iOS%2011%20Simulator%20Release%20WK2%20(Tests)/r222986%20(371)/results.html
https://build.webkit.org/builders/Apple%20iOS%2011%20Simulator%20Release%20WK2%20(Tests)/builds/371

diff:

--- /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/http/tests/preload/viewport/meta-viewport-link-headers-expected.txt
+++ /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/http/tests/preload/viewport/meta-viewport-link-headers-actual.txt
@@ -1,3 +1,3 @@
 
-PASS Makes sure that Link headers support the media attribute and respond to &lt;meta content=viewport&gt; 
+FAIL Makes sure that Link headers support the media attribute and respond to &lt;meta content=viewport&gt; assert_true: The control element should be loaded expected true got false
 
first failure:
https://build.webkit.org/builders/Apple%20iOS%2011%20Simulator%20Release%20WK2%20(Tests)/builds/33

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359285</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-11 11:41:56 -0700</bug_when>
    <thetext>Yoav, would you be willing to take a look? Apparently the fix in bug 172518 wasn&apos;t sufficient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359292</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-11 11:45:56 -0700</bug_when>
    <thetext>I don&apos;t know if that&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359342</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2017-10-11 12:41:41 -0700</bug_when>
    <thetext>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&apos;t think there is an issue there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359358</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-11 13:16:07 -0700</bug_when>
    <thetext>It only polls for one second, and the load may not complete so quickly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1367553</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-11-02 14:25:23 -0700</bug_when>
    <thetext>Marked test as flaky in https://trac.webkit.org/changeset/224355/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>