Bug 169552 - XMLHttpRequest: upload listener flag not implemented correctly
Summary: XMLHttpRequest: upload listener flag not implemented correctly
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-13 06:18 PDT by Anne van Kesteren
Modified: 2022-08-20 09:48 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 2017-03-13 06:18:10 PDT
In particular, it seems to be bypassed for same-origin requests, which is unlikely to work well, as same-origin can be redirected to cross-origin.

https://github.com/w3c/web-platform-tests/pull/5122
Comment 1 Alexey Proskuryakov 2017-03-13 09:34:35 PDT
> same-origin can be redirected to cross-origin 

Have we added support for such redirection already? If so, this bug sounds pretty bad.
Comment 2 youenn fablet 2017-03-13 09:40:14 PDT
(In reply to comment #1)
> > same-origin can be redirected to cross-origin 
> 
> Have we added support for such redirection already? If so, this bug sounds
> pretty bad.

Indeed, we need to fix that!
Comment 3 Ahmad Saleem 2022-08-20 00:05:42 PDT
Safari Technology Preview 151 pass all tests, which WPT Pull Request was trying to modifying:

https://wpt.fyi/results/xhr?label=master&label=experimental&aligned&view=subtest&q=event-upload-progress

Is anything else needed? Thanks!
Comment 4 Alexey Proskuryakov 2022-08-20 09:48:55 PDT
Passing these tests is a pretty strong indication that this now works. Maybe fixed in 211702@main?

We have a lot of flakiness, but it's tracked in other bugs already:

LayoutTests/platform/mac-wk1/TestExpectations:1480:webkit.org/b/223944 [ BigSur Debug ] imported/w3c/web-platform-tests/xhr/event-upload-progress.any.html [ Pass Failure ]
LayoutTests/platform/mac/TestExpectations:1969:webkit.org/b/223271 [ Debug ] imported/w3c/web-platform-tests/xhr/event-upload-progress.any.worker.html [ Pass Failure ]
LayoutTests/platform/mac/TestExpectations:2098:webkit.org/b/222385 imported/w3c/web-platform-tests/xhr/event-upload-progress-crossorigin.any.worker.html [ Pass Failure ]
LayoutTests/platform/mac/TestExpectations:2100:webkit.org/b/223804 imported/w3c/web-platform-tests/xhr/event-upload-progress-crossorigin.any.html [ Pass Failure ]