<?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>170702</bug_id>
          
          <creation_ts>2017-04-10 15:27:44 -0700</creation_ts>
          <short_desc>[macOS Sierra] LayoutTest http/tests/inspector/network/resource-request-headers.html is a flaky failure</short_desc>
          <delta_ts>2017-05-05 13:32:24 -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>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=171545</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1296194</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-10 15:27:44 -0700</bug_when>
    <thetext>LayoutTest http/tests/inspector/network/resource-request-headers.html is a flaky failure

https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK2%20(Tests)/r215180%20(401)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Finspector%2Fnetwork%2Fresource-request-headers.html

--- /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/http/tests/inspector/network/resource-request-headers-expected.txt
+++ /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/http/tests/inspector/network/resource-request-headers-actual.txt
@@ -34,5 +34,7 @@
 PASS: Resource should be created.
 PASS: Resource should receive a Response.
 PASS: Resource should have a 200 status code.
-PASS: &apos;Authorization&apos; header value should be for goodUsername:goodPassword.
+FAIL: &apos;Authorization&apos; header value should be for goodUsername:goodPassword.
+    Expected: &quot;Basic Z29vZFVzZXJuYW1lOmdvb2RQYXNzd29yZA==&quot;
+    Actual: undefined</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296195</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-10 15:28:08 -0700</bug_when>
    <thetext>This test was added with https://trac.webkit.org/changeset/215062/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296198</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-10 15:39:28 -0700</bug_when>
    <thetext>Arg this will need to be marked flakey until I have time to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297140</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-13 14:41:44 -0700</bug_when>
    <thetext>(In reply to Joseph Pecoraro from comment #2)
&gt; Arg this will need to be marked flakey until I have time to investigate.

Done in https://trac.webkit.org/changeset/215338/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297173</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-04-13 15:40:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/31616643&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304897</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-04 17:02:16 -0700</bug_when>
    <thetext>Adding InspectorTest.debug() I see:
&gt;    event: {&quot;method&quot;:&quot;Network.requestWillBeSent&quot;,&quot;params&quot;:{&quot;requestId&quot;:&quot;0.330&quot;,&quot;frameId&quot;:&quot;0.1&quot;,&quot;loaderId&quot;:&quot;0.91&quot;,&quot;documentURL&quot;:&quot;http://127.0.0.1:8000/inspector/network/resource-request-headers.html&quot;,&quot;request&quot;:{&quot;url&quot;:&quot;http://goodUsername:goodPassword@127.0.0.1:8000/inspector/network/resources/basic-auth.php?0.33697814343205157&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;headers&quot;:{&quot;Referer&quot;:&quot;http://127.0.0.1:8000/inspector/network/resource-request-headers.html&quot;,&quot;Accept&quot;:&quot;*/*&quot;,&quot;User-Agent&quot;:&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/604.1.22+ (KHTML, like Gecko)&quot;}},&quot;timestamp&quot;:0.9208538240000053,&quot;initiator&quot;:{&quot;type&quot;:&quot;script&quot;,&quot;stackTrace&quot;:[{&quot;functionName&quot;:&quot;send&quot;,&quot;url&quot;:&quot;[native code]&quot;,&quot;scriptId&quot;:&quot;0&quot;,&quot;lineNumber&quot;:0,&quot;columnNumber&quot;:0},{&quot;functionName&quot;:&quot;triggerNetworkLoadWithBasicAuthentication&quot;,&quot;url&quot;:&quot;http://127.0.0.1:8000/inspector/network/resource-request-headers.html&quot;,&quot;scriptId&quot;:&quot;1934&quot;,&quot;lineNumber&quot;:18,&quot;columnNumber&quot;:13},{&quot;functionName&quot;:&quot;triggerNetworkLoadWithBasicAuthenticationSuccess&quot;,&quot;url&quot;:&quot;http://127.0.0.1:8000/inspector/network/resource-request-headers.html&quot;,&quot;scriptId&quot;:&quot;1934&quot;,&quot;lineNumber&quot;:40,&quot;columnNumber&quot;:46},{&quot;functionName&quot;:&quot;global code&quot;,&quot;url&quot;:&quot;&quot;,&quot;scriptId&quot;:&quot;1967&quot;,&quot;lineNumber&quot;:1,&quot;columnNumber&quot;:49},{&quot;functionName&quot;:&quot;evaluateWithScopeExtension&quot;,&quot;url&quot;:&quot;[native code]&quot;,&quot;scriptId&quot;:&quot;0&quot;,&quot;lineNumber&quot;:0,&quot;columnNumber&quot;:0},{&quot;functionName&quot;:&quot;_evaluateOn&quot;,&quot;url&quot;:&quot;&quot;,&quot;scriptId&quot;:&quot;1935&quot;,&quot;lineNumber&quot;:100,&quot;columnNumber&quot;:29},{&quot;functionName&quot;:&quot;_evaluateAndWrap&quot;,&quot;url&quot;:&quot;&quot;,&quot;scriptId&quot;:&quot;1935&quot;,&quot;lineNumber&quot;:93,&quot;columnNumber&quot;:105},{&quot;functionName&quot;:&quot;evaluate&quot;,&quot;url&quot;:&quot;&quot;,&quot;scriptId&quot;:&quot;1935&quot;,&quot;lineNumber&quot;:83,&quot;columnNumber&quot;:30}]},&quot;type&quot;:&quot;XHR&quot;}}
&gt;    response: {&quot;result&quot;:{&quot;result&quot;:{&quot;type&quot;:&quot;undefined&quot;},&quot;wasThrown&quot;:false},&quot;id&quot;:57}
&gt;    event: {&quot;method&quot;:&quot;Network.responseReceived&quot;,&quot;params&quot;:{&quot;requestId&quot;:&quot;0.330&quot;,&quot;frameId&quot;:&quot;0.1&quot;,&quot;loaderId&quot;:&quot;0.91&quot;,&quot;timestamp&quot;:0.9282765010000276,&quot;type&quot;:&quot;XHR&quot;,&quot;response&quot;:{&quot;url&quot;:&quot;http://127.0.0.1:8000/inspector/network/resources/basic-auth.php?0.33697814343205157&quot;,&quot;status&quot;:200,&quot;statusText&quot;:&quot;OK&quot;,&quot;headers&quot;:{&quot;Content-Type&quot;:&quot;text/html&quot;,&quot;Date&quot;:&quot;Thu, 04 May 2017 23:58:00 GMT&quot;,&quot;Connection&quot;:&quot;Keep-Alive&quot;,&quot;Server&quot;:&quot;Apache/2.4.25 (Unix) PHP/5.6.30 LibreSSL/2.2.7&quot;,&quot;Content-Length&quot;:&quot;8&quot;,&quot;Keep-Alive&quot;:&quot;timeout=15, max=100&quot;,&quot;X-Powered-By&quot;:&quot;PHP/5.6.30&quot;},&quot;mimeType&quot;:&quot;text/html&quot;,&quot;source&quot;:&quot;network&quot;,&quot;timing&quot;:{&quot;startTime&quot;:0.9201104710000436,&quot;domainLookupStart&quot;:0.565946102142334,&quot;domainLookupEnd&quot;:0.565946102142334,&quot;connectStart&quot;:0.565946102142334,&quot;connectEnd&quot;:0.565946102142334,&quot;secureConnectionStart&quot;:-1000,&quot;requestStart&quot;:0.7959604263305664,&quot;responseStart&quot;:1.3339519500732422}}}}
&gt;    event: {&quot;method&quot;:&quot;Network.dataReceived&quot;,&quot;params&quot;:{&quot;requestId&quot;:&quot;0.330&quot;,&quot;timestamp&quot;:0.9285717630000363,&quot;dataLength&quot;:8,&quot;encodedDataLength&quot;:8}}
&gt;    FAIL: &apos;Authorization&apos; header value should be for goodUsername:goodPassword.
&gt;        Expected: &quot;Basic Z29vZFVzZXJuYW1lOmdvb2RQYXNzd29yZA==&quot;
&gt;        Actual: undefined
&gt;    request: {&quot;id&quot;:61,&quot;method&quot;:&quot;Runtime.evaluate&quot;,&quot;params&quot;:{&quot;expression&quot;:&quot;TestPage.addResult(unescape(\&quot;FAIL%3A%20%27Authorization%27%20header%20value%20should%20be%20for%20goodUsername%3AgoodPassword.%0A%20%20%20%20Expected%3A%20%22Basic%20Z29vZFVzZXJuYW1lOmdvb2RQYXNzd29yZA%3D%3D%22%0A%20%20%20%20Actual%3A%20undefined\&quot;))&quot;,&quot;objectGroup&quot;:&quot;test&quot;,&quot;includeCommandLineAPI&quot;:false}}
&gt;    completeTest()
&gt;    event: {&quot;method&quot;:&quot;Network.loadingFinished&quot;,&quot;params&quot;:{&quot;requestId&quot;:&quot;0.330&quot;,&quot;timestamp&quot;:0.9215144584077279,&quot;metrics&quot;:{&quot;protocol&quot;:&quot;http/1.1&quot;,&quot;priority&quot;:&quot;medium&quot;,&quot;requestHeaders&quot;:{&quot;Referer&quot;:&quot;http://127.0.0.1:8000/inspector/network/resource-request-headers.html&quot;,&quot;Host&quot;:&quot;127.0.0.1:8000&quot;,&quot;Accept&quot;:&quot;*/*&quot;,&quot;Connection&quot;:&quot;keep-alive&quot;,&quot;Accept-Language&quot;:&quot;en-us&quot;,&quot;Accept-Encoding&quot;:&quot;gzip, deflate&quot;,&quot;Authorization&quot;:&quot;Basic Z29vZFVzZXJuYW1lOmdvb2RQYXNzd29yZA==&quot;,&quot;Cookie&quot;:&quot;InspectorTestCookie=1234&quot;,&quot;User-Agent&quot;:&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/604.1.22+ (KHTML, like Gecko)&quot;}}}}

So the test is checking the values before the Network load has finished (Network.loadingFinished).

I&apos;ll wait for the loading finished event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304900</commentid>
    <comment_count>6</comment_count>
      <attachid>309115</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-04 17:09:24 -0700</bug_when>
    <thetext>Created attachment 309115
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305285</commentid>
    <comment_count>7</comment_count>
      <attachid>309115</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-05-05 13:28:36 -0700</bug_when>
    <thetext>Comment on attachment 309115
[PATCH] Proposed Fix

rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305286</commentid>
    <comment_count>8</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-05 13:32:24 -0700</bug_when>
    <thetext>&lt;https://trac.webkit.org/changeset/216266/webkit&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>309115</attachid>
            <date>2017-05-04 17:09:24 -0700</date>
            <delta_ts>2017-05-05 13:28:36 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>wait-for-finish-1.patch</filename>
            <type>text/plain</type>
            <size>2889</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCAwZjUyOWUxODI3NC4uY2Q3OTZiZTg1OTkgMTAwNjQ0Ci0tLSBhL0xheW91dFRlc3Rz
L0NoYW5nZUxvZworKysgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAor
MjAxNy0wNS0wNCAgSm9zZXBoIFBlY29yYXJvICA8cGVjb3Jhcm9AYXBwbGUuY29tPgorCisgICAg
ICAgIFttYWNPUyBTaWVycmFdIExheW91dFRlc3QgaHR0cC90ZXN0cy9pbnNwZWN0b3IvbmV0d29y
ay9yZXNvdXJjZS1yZXF1ZXN0LWhlYWRlcnMuaHRtbCBpcyBhIGZsYWt5IGZhaWx1cmUKKyAgICAg
ICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3MDcwMgorICAgICAg
ICA8cmRhcjovL3Byb2JsZW0vMzE2MTY2NDM+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9tYWMtd2syL1Rlc3RFeHBlY3RhdGlvbnM6
CisgICAgICAgICogaHR0cC90ZXN0cy9pbnNwZWN0b3IvbmV0d29yay9yZXNvdXJjZS1yZXF1ZXN0
LWhlYWRlcnMuaHRtbDoKKyAgICAgICAgTWFrZSB0aGlzIHRlc3QgdW5mbGFrZXkgYnkgZW5zdXJp
bmcgd2Ugd2FpdCBmb3IgdGhlIGxvYWQgdG8gY29tcGxldGUuCisKIDIwMTctMDUtMDQgIFNhaWQg
QWJvdS1IYWxsYXdhICA8c2Fib3VoYWxsYXdh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GF0aW9ucworKysgYi9MYXlvdXRU
ZXN0cy9wbGF0Zm9ybS9tYWMtd2syL1Rlc3RFeHBlY3RhdGlvbnMKQEAgLTY0OCw4ICs2NDgsNiBA
QCB3ZWJraXQub3JnL2IvMTcwNDEwIGZhc3QvaW1hZ2VzL2FuaW1hdGVkLWdpZi13ZWJraXQtdHJh
bnNmb3JtLmh0bWwgWyBQYXNzIEZhaWx1cgogCiBjb21wb3NpdGluZy90aWxpbmcvbm9uLXZpc2li
bGUtd2luZG93LXRpbGUtY292ZXJhZ2UuaHRtbCBbIFBhc3MgXQogCi13ZWJraXQub3JnL2IvMTcw
NzAyIFsgU2llcnJhIF0gaHR0cC90ZXN0cy9pbnNwZWN0b3IvbmV0d29yay9yZXNvdXJjZS1yZXF1
ZXN0LWhlYWRlcnMuaHRtbCBbIFBhc3MgRmFpbHVyZSBdCi0KIHdlYmtpdC5vcmcvYi8xNzA5MDcg
WyBEZWJ1ZyBdIGltcG9ydGVkL3czYy93ZWItcGxhdGZvcm0tdGVzdHMvV2ViQ3J5cHRvQVBJL2Rl
cml2ZV9iaXRzX2tleXMvaGtkZi53b3JrZXIuaHRtbCBbIFBhc3MgRmFpbHVyZSBUaW1lb3V0IF0K
IAogd2Via2l0Lm9yZy9iLzE3MDYyOSBbIFNpZXJyYSBEZWJ1ZyBdIG1lbW9yeS9tZW1vcnktcHJl
c3N1cmUtc2ltdWxhdGlvbi5odG1sIFsgUGFzcyBGYWlsdXJlIF0K
</data>
<flag name="review"
          id="330283"
          type_id="1"
          status="+"
          setter="bburg"
    />
          </attachment>
      

    </bug>

</bugzilla>