See steps in https://xhr.spec.whatwg.org/#response-mime-type
Created attachment 350105 [details] Patch
Comment on attachment 350105 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=350105&action=review > Source/WebCore/ChangeLog:3 > + [XHR] Response MIME type computation should return text/xml for non-http protocols IIUC, "should default to text/xml" is more accurate. > LayoutTests/ChangeLog:9 > + * fast/files/xhr-response-blob.html: Do we also have upstream WPT tests we can import/update/write for this?
Comment on attachment 350105 [details] Patch Clearing the review flag as this needs more investigation. Also probably needs a similar chromium change.
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/9269156 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350110 [details] Archive of layout-test-results from ews102 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/9269176 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350111 [details] Archive of layout-test-results from ews107 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/9269252 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350113 [details] Archive of layout-test-results from ews116 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9269248 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350117 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/9270640 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350125 [details] Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment on attachment 350105 [details] Patch Attachment 350105 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9270407 New failing tests: fast/xmlhttprequest/xmlhttprequest-responseXML-html-no-responsetype.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html fast/events/event-handler-detached-document.html fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-quirks.html fast/dom/Document/adoptNode-quirks-mismatch.html fast/dom/Document/adoptNode-quirks-mismatch2.html svg/load-event-detached.html
Created attachment 350128 [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
It looks like this has been improved.