<?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>206474</bug_id>
          
          <creation_ts>2020-01-18 07:25:51 -0800</creation_ts>
          <short_desc>Regression r254652: fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload.html fails on windows</short_desc>
          <delta_ts>2020-01-21 10:36:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Other</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=206315</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="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>pvollan</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1608436</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-18 07:25:51 -0800</bug_when>
    <thetext>r254652 added test fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload.html which is consistently failing on windows.

Results database: https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fxmlhttprequest%2Fxmlhttprequest-multiple-sync-xhr-during-unload.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608437</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-18 07:27:18 -0800</bug_when>
    <thetext>e.g.: https://build.webkit.org/results/Apple%20Win%2010%20Debug%20(Tests)/r254663%20(3323)/results.html

--- /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-expected.txt
+++ /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-actual.txt
@@ -1,9 +1,9 @@
 frame &quot;&lt;!--frame1--&gt;&quot; - has 1 onunload handler(s)
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?0.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?1.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?2.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?3.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?4.
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608438</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-18 07:31:52 -0800</bug_when>
    <thetext>r254652 might have also caused http/tests/websocket/tests/hybi/simple-wss.html to fail, not 100% sure at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608909</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-01-20 19:03:37 -0800</bug_when>
    <thetext>*** Bug 206515 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609063</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-01-21 08:31:58 -0800</bug_when>
    <thetext>Looks to me that we need a windows-specific baseline.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609090</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-01-21 09:43:51 -0800</bug_when>
    <thetext>The test was marked as failing in https://trac.webkit.org/changeset/254851/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609091</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-01-21 09:45:27 -0800</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #5)
&gt; The test was marked as failing in
&gt; https://trac.webkit.org/changeset/254851/webkit

This is not a failure, it just needs a windows baseline:
--- /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-expected.txt
+++ /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-actual.txt
@@ -1,9 +1,9 @@
 frame &quot;&lt;!--frame1--&gt;&quot; - has 1 onunload handler(s)
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?0.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?1.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?2.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?3.
-CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json?4.
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
+CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load xmlhttprequest-responsetype-json.json
 Makes sure that we throw when doing sync XHRs during unload.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609094</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-01-21 09:47:06 -0800</bug_when>
    <thetext>(In reply to Chris Dumez from comment #6)
&gt; (In reply to Ryan Haddad from comment #5)
&gt; &gt; The test was marked as failing in
&gt; &gt; https://trac.webkit.org/changeset/254851/webkit
&gt; 
&gt; This is not a failure, it just needs a windows baseline:
&gt; ---
&gt; /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/
&gt; xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-expected.txt
&gt; +++
&gt; /home/buildbot/worker/win10-debug-tests/build/layout-test-results/fast/
&gt; xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload-actual.txt
&gt; @@ -1,9 +1,9 @@
&gt;  frame &quot;&lt;!--frame1--&gt;&quot; - has 1 onunload handler(s)
&gt; -CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json?0.
&gt; -CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json?1.
&gt; -CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json?2.
&gt; -CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json?3.
&gt; -CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json?4.
&gt; +CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json
&gt; +CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json
&gt; +CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json
&gt; +CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json
&gt; +CONSOLE MESSAGE: line 9: XMLHttpRequest cannot load
&gt; xmlhttprequest-responsetype-json.json
&gt;  Makes sure that we throw when doing sync XHRs during unload.
&gt;  
&gt;  On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST
&gt; COMPLETE&quot;.
Understood, just wanted to call out the fact that it was marked as failing via the dupe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609110</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-21 09:59:54 -0800</bug_when>
    <thetext>Out of curiosity, why is it OK for Windows to have this difference? The diff makes it look like the test is not doing the expected work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609112</commentid>
    <comment_count>9</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-01-21 10:03:05 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #8)
&gt; Out of curiosity, why is it OK for Windows to have this difference? The diff
&gt; makes it look like the test is not doing the expected work.

It looks to me that the search query is getting stripped on windows before the URL gets printed.

The test still says:
PASS xhrExceptionCount is 5

So to me it does look like the test is passing. The only difference is in console logging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609113</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-01-21 10:04:10 -0800</bug_when>
    <thetext>(In reply to Chris Dumez from comment #9)
&gt; (In reply to Alexey Proskuryakov from comment #8)
&gt; &gt; Out of curiosity, why is it OK for Windows to have this difference? The diff
&gt; &gt; makes it look like the test is not doing the expected work.
&gt; 
&gt; It looks to me that the search query is getting stripped on windows before
&gt; the URL gets printed.
&gt; 
&gt; The test still says:
&gt; PASS xhrExceptionCount is 5
&gt; 
&gt; So to me it does look like the test is passing. The only difference is in
&gt; console logging.

Code looks like:
    String messageEnd = error.isAccessControl() ? &quot; due to access control checks.&quot;_s : &quot;.&quot;_s;
    context.addConsoleMessage(MessageSource::JS, MessageLevel::Error, makeString(messageStart, error.failingURL().string(), messageEnd));

For some reason, it seems error.failingURL() is missing the query parameter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609114</commentid>
    <comment_count>11</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-01-21 10:07:27 -0800</bug_when>
    <thetext>Committed r254860: &lt;https://trac.webkit.org/changeset/254860&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609115</commentid>
    <comment_count>12</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-21 10:08:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/58763098&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609131</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-21 10:36:34 -0800</bug_when>
    <thetext>That seems like something to fix (at least eventually), so that we don&apos;t have to maintain separate expectations.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>