Bug 159724

Summary: LayoutTest imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm asserts in WebKitLegacy
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: youenn fablet <youennf>
Status: RESOLVED WONTFIX    
Severity: Normal CC: achristensen, ap, brendan, cdumez, commit-queue, ews-watchlist, Ms2ger, rniwa, ryanhaddad, sroberts, youennf
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=152022
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch
none
Patch
none
Archive of layout-test-results from ews100 for mac-highsierra
none
Archive of layout-test-results from ews115 for mac-highsierra
none
Patch none

Ryan Haddad
Reported 2016-07-13 10:16:49 PDT
LayoutTest imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm failing Test was imported in http://trac.webkit.org/changeset/203164 with a Pass Crash expectation, but it appears to be failing on Mac and iOS-simulator. https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK2%20(Tests)/r203164%20(7598)/results.html https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=imported%2Fw3c%2Fweb-platform-tests%2FXMLHttpRequest%2Fsend-redirect-post-upload.htm --- /Volumes/Data/slave/elcapitan-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload-expected.txt +++ /Volumes/Data/slave/elcapitan-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload-actual.txt @@ -2,5 +2,5 @@ PASS XMLHttpRequest: The send() method: POSTing to URL that redirects (301) PASS XMLHttpRequest: The send() method: POSTing to URL that redirects (302) PASS XMLHttpRequest: The send() method: POSTing to URL that redirects (303) -PASS XMLHttpRequest: The send() method: POSTing to URL that redirects (307) +FAIL XMLHttpRequest: The send() method: POSTing to URL that redirects (307) assert_equals: X-Request-Content-Length expected "11988" but got "0"
Attachments
Patch (3.99 KB, patch)
2016-07-19 06:51 PDT, youenn fablet
no flags
Patch for landing (2.65 KB, patch)
2016-08-03 23:25 PDT, youenn fablet
no flags
Patch (10.69 KB, patch)
2019-03-28 16:00 PDT, Alex Christensen
no flags
Patch (10.88 KB, patch)
2019-03-28 16:14 PDT, Alex Christensen
no flags
Archive of layout-test-results from ews100 for mac-highsierra (2.57 MB, application/zip)
2019-03-28 16:56 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews115 for mac-highsierra (2.41 MB, application/zip)
2019-03-28 17:49 PDT, EWS Watchlist
no flags
Patch (18.31 KB, patch)
2019-03-28 20:34 PDT, Alex Christensen
no flags
Ryan Haddad
Comment 1 2016-07-13 10:19:36 PDT
Specifically, it is failing on Release WK2.
youenn fablet
Comment 2 2016-07-13 10:36:13 PDT
I am out for 30 minutes. I'll fix that if it is not done so. Sorry for the inconvenience
Ryan Haddad
Comment 3 2016-07-13 10:42:19 PDT
(In reply to comment #2) > I am out for 30 minutes. I'll fix that if it is not done so. Sorry for the > inconvenience Thank you! In the meantime, I have marked the test as failing on Mac and ios-sim Release WK2 in <http://trac.webkit.org/projects/webkit/changeset/203166>
youenn fablet
Comment 4 2016-07-13 11:01:53 PDT
(In reply to comment #3) > (In reply to comment #2) > > I am out for 30 minutes. I'll fix that if it is not done so. Sorry for the > > inconvenience > > Thank you! In the meantime, I have marked the test as failing on Mac and > ios-sim Release WK2 in > <http://trac.webkit.org/projects/webkit/changeset/203166> Thanks, I'll try to fix it tomorrow then.
youenn fablet
Comment 5 2016-07-19 00:13:41 PDT
The test seems flaky on passing WK1 bots. On Mac/WK2, it is as if the body is not preserved during the 307 redirection. This ends up in an assertion being raised for debug builds and a request content-length being equal to 0.
youenn fablet
Comment 6 2016-07-19 00:15:07 PDT
(In reply to comment #5) > The test seems flaky on passing WK1 bots. On other browsers and other ports, the test seems fragile also. The counting of events seems to be easily broken by browsers.
youenn fablet
Comment 7 2016-07-19 06:51:49 PDT
WebKit Commit Bot
Comment 8 2016-07-19 07:13:54 PDT
Comment on attachment 284003 [details] Patch Clearing flags on attachment: 284003 Committed r203405: <http://trac.webkit.org/changeset/203405>
WebKit Commit Bot
Comment 9 2016-07-19 07:13:59 PDT
All reviewed patches have been landed. Closing bug.
youenn fablet
Comment 10 2016-07-19 07:15:03 PDT
Reopening to continue tracking the actual bug
youenn fablet
Comment 11 2016-07-19 11:44:20 PDT
Alexey Proskuryakov
Comment 12 2016-07-19 13:21:25 PDT
0 com.apple.JavaScriptCore 0x000000010b906417 WTFCrash + 39 (Assertions.cpp:323) 1 com.apple.WebCore 0x000000010fbe06a5 WebCore::ResourceRequest::doUpdateResourceHTTPBody() + 325 (ResourceRequestCocoa.mm:115) 2 com.apple.WebCore 0x000000010fbddc0d WebCore::ResourceRequestBase::updateResourceRequest(WebCore::HTTPBodyUpdatePolicy) const + 237 (ResourceRequestBase.cpp:586) 3 com.apple.WebCore 0x000000010fbde6de WebCore::ResourceRequestBase::httpBody() const + 30 (ResourceRequestBase.cpp:397) 4 com.apple.WebCore 0x000000010fbdf8ef WebCore::ResourceRequest::updateFromDelegatePreservingOldProperties(WebCore::ResourceRequest const&) + 47 (ResourceRequestCFNet.cpp:331) 5 com.apple.WebKit 0x0000000106c60e81 WebKit::NetworkLoad::continueWillSendRequest(WebCore::ResourceRequest&&) + 97 (NetworkLoad.cpp:118) 6 com.apple.WebKit 0x0000000106cab934 WebKit::NetworkResourceLoader::continueWillSendRequest(WebCore::ResourceRequest&&) + 244 (NetworkResourceLoader.cpp:474) 7 com.apple.WebKit 0x0000000106cb64ef void IPC::callMemberFunctionImpl<WebKit::NetworkResourceLoader, void (WebKit::NetworkResourceLoader::*)(WebCore::ResourceRequest&&), std::__1::tuple<WebCore::ResourceRequest>, 0ul>(WebKit::NetworkResourceLoader*, void (WebKit::NetworkResourceLoader::*)(WebCore::ResourceRequest&&), std::__1::tuple<WebCore::ResourceRequest>&&, std::__1::integer_sequence<unsigned long, 0ul>) + 159 (HandleMessage.h:17)
Alexey Proskuryakov
Comment 13 2016-08-03 16:50:05 PDT
This test asserts 100% of time in debug, so it should indeed be skipped until a fix is found. Running CrashReporter is costly, and can destabilize other tests. It is a flaky failure in release.
youenn fablet
Comment 14 2016-08-03 23:25:09 PDT
Created attachment 285303 [details] Patch for landing
youenn fablet
Comment 15 2016-08-03 23:25:57 PDT
(In reply to comment #14) > Created attachment 285303 [details] > Patch for landing Skipping for Debug Mac bots. Marking as flaky for all Release bots.
WebKit Commit Bot
Comment 16 2016-08-03 23:54:47 PDT
Comment on attachment 285303 [details] Patch for landing Clearing flags on attachment: 285303 Committed r204116: <http://trac.webkit.org/changeset/204116>
WebKit Commit Bot
Comment 17 2016-08-03 23:54:51 PDT
All reviewed patches have been landed. Closing bug.
youenn fablet
Comment 18 2016-08-03 23:55:57 PDT
Reopening to continue the investigation
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 19 2017-11-16 00:47:02 PST
Filed an upstream bug: https://github.com/w3c/web-platform-tests/issues/8191 Note that the current flakiness is between PASS XMLHttpRequest: The send() method: POSTing to URL that redirects (307) FAIL XMLHttpRequest: The send() method: POSTing to URL that redirects (307) assert_array_equals: events firing in expected order and states lengths differ, expected 9 got 10 rather than any failures in earlier comments.
Alex Christensen
Comment 20 2019-03-28 16:00:41 PDT
Alex Christensen
Comment 21 2019-03-28 16:02:16 PDT
*** Bug 196274 has been marked as a duplicate of this bug. ***
Alex Christensen
Comment 22 2019-03-28 16:14:16 PDT
EWS Watchlist
Comment 23 2019-03-28 16:56:26 PDT
Comment on attachment 366220 [details] Patch Attachment 366220 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/11696202 New failing tests: http/tests/local/fileapi/send-sliced-dragged-file.html
EWS Watchlist
Comment 24 2019-03-28 16:56:30 PDT
Created attachment 366224 [details] Archive of layout-test-results from ews100 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 25 2019-03-28 17:49:51 PDT
Comment on attachment 366220 [details] Patch Attachment 366220 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/11696440 New failing tests: http/tests/local/fileapi/send-sliced-dragged-file.html
EWS Watchlist
Comment 26 2019-03-28 17:49:53 PDT
Created attachment 366229 [details] Archive of layout-test-results from ews115 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-highsierra Platform: Mac OS X 10.13.6
Alex Christensen
Comment 27 2019-03-28 20:34:57 PDT
Alex Christensen
Comment 28 2019-03-29 12:40:45 PDT
Comment on attachment 366239 [details] Patch Brady said we should not do this improvement to WebKitLegacy, especially since it has a known regression that needs working around. I agree.
Alex Christensen
Comment 29 2019-03-29 13:01:47 PDT
http://trac.webkit.org/r243655 updated the TestExpectations.
Alex Christensen
Comment 30 2019-04-15 11:16:21 PDT
*** Bug 184365 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.