RESOLVED FIXED 169276
Align XMLHttpRequest's overrideMimeType() with the standard
https://bugs.webkit.org/show_bug.cgi?id=169276
Summary Align XMLHttpRequest's overrideMimeType() with the standard
Attachments
Patch (1.47 KB, patch)
2018-09-20 05:21 PDT, Rob Buis
no flags
Patch (3.26 KB, patch)
2018-09-20 07:03 PDT, Rob Buis
no flags
Archive of layout-test-results from ews106 for mac-sierra-wk2 (3.09 MB, application/zip)
2018-09-20 08:06 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews103 for mac-sierra (2.31 MB, application/zip)
2018-09-20 08:16 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.37 MB, application/zip)
2018-09-20 08:35 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews117 for mac-sierra (3.08 MB, application/zip)
2018-09-20 09:01 PDT, EWS Watchlist
no flags
Patch (5.34 KB, patch)
2018-09-20 12:52 PDT, Rob Buis
no flags
Patch (5.32 KB, patch)
2018-09-24 23:52 PDT, Rob Buis
cdumez: review+
Rob Buis
Comment 2 2018-09-20 05:21:33 PDT
Rob Buis
Comment 3 2018-09-20 07:03:58 PDT
EWS Watchlist
Comment 4 2018-09-20 08:06:35 PDT
Comment on attachment 350198 [details] Patch Attachment 350198 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/9281363 New failing tests: imported/w3c/web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm
EWS Watchlist
Comment 5 2018-09-20 08:06:37 PDT
Created attachment 350199 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 6 2018-09-20 08:16:49 PDT
Comment on attachment 350198 [details] Patch Attachment 350198 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/9281440 New failing tests: imported/w3c/web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm
EWS Watchlist
Comment 7 2018-09-20 08:16:51 PDT
Created attachment 350201 [details] Archive of layout-test-results from ews103 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 8 2018-09-20 08:35:09 PDT
Comment on attachment 350198 [details] Patch Attachment 350198 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9281389 New failing tests: imported/w3c/web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm
EWS Watchlist
Comment 9 2018-09-20 08:35:11 PDT
Created attachment 350205 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 10 2018-09-20 09:00:59 PDT
Comment on attachment 350198 [details] Patch Attachment 350198 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/9281473 New failing tests: imported/w3c/web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm
EWS Watchlist
Comment 11 2018-09-20 09:01:01 PDT
Created attachment 350210 [details] Archive of layout-test-results from ews117 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-sierra Platform: Mac OS X 10.12.6
Rob Buis
Comment 12 2018-09-20 12:52:02 PDT
Rob Buis
Comment 13 2018-09-20 14:01:05 PDT
Comment on attachment 350251 [details] Patch PTAL. Note that this has some overlap with https://bugs.webkit.org/show_bug.cgi?id=180526. Not sure if there is a better way of dealing with this. Finally, forgot to say this matches Firefox and Chrome.
Rob Buis
Comment 14 2018-09-24 23:52:50 PDT
Chris Dumez
Comment 15 2018-10-01 08:49:06 PDT
Comment on attachment 350741 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=350741&action=review r=me > Source/WebCore/xml/XMLHttpRequest.cpp:784 > + m_mimeTypeOverride = "application/octet-stream"; "application/octet-stream"_s is slightly more efficient I believe.
Rob Buis
Comment 16 2018-10-01 09:18:41 PDT
Manually landed as r236663.
Chris Dumez
Comment 17 2018-10-01 09:21:09 PDT
(In reply to Rob Buis from comment #16) > Manually landed as r236663. Commit message is wrong: https://trac.webkit.org/changeset/236663/webkit Please use commit queue as much as possible.
Radar WebKit Bug Importer
Comment 18 2018-10-01 09:22:31 PDT
Rob Buis
Comment 19 2018-10-01 09:26:09 PDT
(In reply to Chris Dumez from comment #17) > (In reply to Rob Buis from comment #16) > > Manually landed as r236663. > > Commit message is wrong: > https://trac.webkit.org/changeset/236663/webkit > > Please use commit queue as much as possible. Oops, sorry! I am a bit rusty but I am sure I'll get the hang of it (again) soon.
Anne van Kesteren
Comment 20 2018-10-02 01:47:27 PDT
Rob, did you see https://github.com/whatwg/xhr/pull/218? We ended up reverting part of this and it seems I forgot to notify this bug about those plans. I'm sorry about that and hope it's not too much of a hassle to get that change in if it isn't already.
Rob Buis
Comment 21 2018-10-02 08:34:17 PDT
Hi Anne, I think that is something we never implemented, i.e. once we set internal overrideMimeType we do not reset it at all. My change was about making overrideMimeType method only set overrideMimeType for valid mime parameter, and fallback to application/octet-stream otherwise.
Anne van Kesteren
Comment 22 2018-10-04 02:19:57 PDT
Great!
Note You need to log in before you can comment on or make changes to this bug.