forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r235844 - XMLHttpRequest: overrideMimeType should not update th…
…e response's "Content-Type" header https://bugs.webkit.org/show_bug.cgi?id=189465 Patch by Rob Buis <[email protected]> on 2018-09-10 Reviewed by Frédéric Wang. LayoutTests/imported/w3c: * web-platform-tests/xhr/overridemimetype-invalid-mime-type-expected.txt: Source/WebCore: The xhr spec changed [1, 2] so that overrideMimeType should not update the response's "Content-Type" header anymore. Behavior matches Firefox and Chrome. [1] https://xhr.spec.whatwg.org/#dom-xmlhttprequest-overridemimetype [2] whatwg/xhr#157 Tests: http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header.html web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::didReceiveResponse): LayoutTests: Change existing test to reflect new behavior. * http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header-expected.txt: * http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header.html: git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.22@236185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
baf1423
commit d3dfdf0
Showing
7 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
2018-09-10 Rob Buis <[email protected]> | ||
|
||
XMLHttpRequest: overrideMimeType should not update the response's "Content-Type" header | ||
https://bugs.webkit.org/show_bug.cgi?id=189465 | ||
|
||
Reviewed by Frédéric Wang. | ||
|
||
Change existing test to reflect new behavior. | ||
|
||
* http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header-expected.txt: | ||
* http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header.html: | ||
|
||
2018-09-10 Antoine Quint <[email protected]> | ||
|
||
[Web Animations] Interrupting an accelerated CSS transition on a composited element in flight fails | ||
|
4 changes: 2 additions & 2 deletions
4
...ttp/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2018-09-10 Rob Buis <[email protected]> | ||
|
||
XMLHttpRequest: overrideMimeType should not update the response's "Content-Type" header | ||
https://bugs.webkit.org/show_bug.cgi?id=189465 | ||
|
||
Reviewed by Frédéric Wang. | ||
|
||
* web-platform-tests/xhr/overridemimetype-invalid-mime-type-expected.txt: | ||
|
||
2018-09-12 Chris Dumez <[email protected]> | ||
|
||
Unreviewed, rebaseline imported/w3c/web-platform-tests/url/failure.html after r235808. | ||
|
4 changes: 2 additions & 2 deletions
4
...ted/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-invalid-mime-type-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
FAIL Bogus MIME type does not override encoding assert_equals: expected "text/html;charset=windows-1252" but got "bogus" | ||
PASS Bogus MIME type does not override encoding | ||
FAIL Bogus MIME type does not override encoding, 2 assert_equals: expected "ÿ" but got "\x1a" | ||
FAIL Bogus MIME type does override MIME type assert_equals: expected "text/xml" but got "bogus" | ||
PASS Bogus MIME type does override MIME type | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
2018-09-10 Rob Buis <[email protected]> | ||
|
||
XMLHttpRequest: overrideMimeType should not update the response's "Content-Type" header | ||
https://bugs.webkit.org/show_bug.cgi?id=189465 | ||
|
||
Reviewed by Frédéric Wang. | ||
|
||
The xhr spec changed [1, 2] so that overrideMimeType should not update the | ||
response's "Content-Type" header anymore. | ||
|
||
Behavior matches Firefox and Chrome. | ||
|
||
[1] https://xhr.spec.whatwg.org/#dom-xmlhttprequest-overridemimetype | ||
[2] https://github.com/whatwg/xhr/issues/157 | ||
|
||
Tests: http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-content-type-header.html | ||
web-platform-tests/xhr/overridemimetype-invalid-mime-type.htm | ||
|
||
* xml/XMLHttpRequest.cpp: | ||
(WebCore::XMLHttpRequest::didReceiveResponse): | ||
|
||
2018-09-10 Antoine Quint <[email protected]> | ||
|
||
[Web Animations] Interrupting an accelerated CSS transition on a composited element in flight fails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters