Bug 206474 - Regression r254652: fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-during-unload.html fails on windows
Summary: Regression r254652: fast/xmlhttprequest/xmlhttprequest-multiple-sync-xhr-duri...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
: 206515 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-18 07:25 PST by Aakash Jain
Modified: 2020-01-21 10:36 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2020-01-18 07:25:51 PST
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&test=fast%2Fxmlhttprequest%2Fxmlhttprequest-multiple-sync-xhr-during-unload.html
Comment 1 Aakash Jain 2020-01-18 07:27:18 PST
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 "<!--frame1-->" - 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
Comment 2 Aakash Jain 2020-01-18 07:31:52 PST
r254652 might have also caused http/tests/websocket/tests/hybi/simple-wss.html to fail, not 100% sure at the moment.
Comment 3 David Kilzer (:ddkilzer) 2020-01-20 19:03:37 PST
*** Bug 206515 has been marked as a duplicate of this bug. ***
Comment 4 Chris Dumez 2020-01-21 08:31:58 PST
Looks to me that we need a windows-specific baseline.
Comment 5 Ryan Haddad 2020-01-21 09:43:51 PST
The test was marked as failing in https://trac.webkit.org/changeset/254851/webkit
Comment 6 Chris Dumez 2020-01-21 09:45:27 PST
(In reply to Ryan Haddad from comment #5)
> The test was marked as failing in
> 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 "<!--frame1-->" - 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 "PASS" messages, followed by "TEST COMPLETE".
Comment 7 Ryan Haddad 2020-01-21 09:47:06 PST
(In reply to Chris Dumez from comment #6)
> (In reply to Ryan Haddad from comment #5)
> > The test was marked as failing in
> > 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 "<!--frame1-->" - 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 "PASS" messages, followed by "TEST
> COMPLETE".
Understood, just wanted to call out the fact that it was marked as failing via the dupe.
Comment 8 Alexey Proskuryakov 2020-01-21 09:59:54 PST
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.
Comment 9 Chris Dumez 2020-01-21 10:03:05 PST
(In reply to Alexey Proskuryakov from comment #8)
> 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.

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.
Comment 10 Chris Dumez 2020-01-21 10:04:10 PST
(In reply to Chris Dumez from comment #9)
> (In reply to Alexey Proskuryakov from comment #8)
> > 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.
> 
> 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.

Code looks like:
    String messageEnd = error.isAccessControl() ? " due to access control checks."_s : "."_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.
Comment 11 Chris Dumez 2020-01-21 10:07:27 PST
Committed r254860: <https://trac.webkit.org/changeset/254860>
Comment 12 Radar WebKit Bug Importer 2020-01-21 10:08:15 PST
<rdar://problem/58763098>
Comment 13 Alexey Proskuryakov 2020-01-21 10:36:34 PST
That seems like something to fix (at least eventually), so that we don't have to maintain separate expectations.