Diff
Modified: trunk/LayoutTests/ChangeLog (173253 => 173254)
--- trunk/LayoutTests/ChangeLog 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/ChangeLog 2014-09-04 07:03:54 UTC (rev 173254)
@@ -1,3 +1,23 @@
+2014-09-03 Youenn Fablet <[email protected]>
+
+ XMLHttpRequest always defaults Content-Type to application/xml, while it should depend on data type
+ https://bugs.webkit.org/show_bug.cgi?id=11049
+
+ Reviewed by Darin Adler.
+
+ * http/tests/xmlhttprequest/methods-lower-case-expected.txt: Rebaseline (application/xml -> text/plain;charset=UTF-8).
+ * http/tests/xmlhttprequest/post-content-type-document.html: New test to cover default mime type for XML and HTML document data types.
+ * http/tests/xmlhttprequest/post-content-type-document-expected.txt: Ditto.
+ * http/tests/xmlhttprequest/post-content-type-expected.txt: Rebaseline (application/xml -> text/plain;charset=UTF-8).
+ * http/tests/xmlhttprequest/post-content-type.html: Ditto.
+ * http/tests/xmlhttprequest/request-encoding2.html: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/methods-expected.txt: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Ditto.
+ * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Ditto.
+
2014-09-03 Shivakumar JM <[email protected]>
[EFL] Websocket Layout Tests passed in latest build.
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/methods-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/methods-lower-case-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/methods-lower-case-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/methods-lower-case-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -1,8 +1,8 @@
Tests for bug 8099 - XMLHttpRequest lowercase post requests broken.
get(""): GET(null bytes), Content-Type: null
-post(""): POST(0 bytes), Content-Type: application/xml
-DoIt(""): DoIt(0 bytes), Content-Type: application/xml
+post(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
+DoIt(""): DoIt(0 bytes), Content-Type: text/plain;charset=UTF-8
get(""): GET(null bytes), Content-Type: null
-post(""): POST(0 bytes), Content-Type: application/xml
-DoIt(""): DoIt(0 bytes), Content-Type: application/xml
+post(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
+DoIt(""): DoIt(0 bytes), Content-Type: text/plain;charset=UTF-8
Added: trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document-expected.txt (0 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document-expected.txt (rev 0)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -0,0 +1,4 @@
+
+PASS sending HTML document should set the Content-Type to text/html;charset=UTF-8.
+PASS sending XML document should set the Content-Type to application/xml;charset=UTF-8.
+
Added: trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document.html (0 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document.html (rev 0)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-document.html 2014-09-04 07:03:54 UTC (rev 173254)
@@ -0,0 +1,25 @@
+<html>
+<head>
+<title>XMLHttpRequest: default mime type when sending Document should be text/html or application/xml according the document type.</title>
+</head>
+<body>
+<script src=""
+<script src=""
+<script>
+ test(function() {
+ req = new XMLHttpRequest
+ req.open("POST", "print-content-type.cgi", false)
+ req.send(new DOMParser().parseFromString("<html/>", "text/html"))
+ assert_equals(req.responseText.trim(), "text/html;charset=UTF-8")
+ }, "sending HTML document should set the Content-Type to text/html;charset=UTF-8.")
+
+ test(function() {
+ req = new XMLHttpRequest
+ req.open("POST", "print-content-type.cgi", false)
+ req.send(new DOMParser().parseFromString("<test/>", "application/xml"))
+ assert_equals(req.responseText.trim(), "application/xml;charset=UTF-8", "sending XML document via XMLHttpRequest should set the Content-Type to application/xml;charset=UTF-8.")
+ }, "sending XML document should set the Content-Type to application/xml;charset=UTF-8.")
+</script>
+</body>
+</html>
+
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -1,6 +1,6 @@
Test for bug 3565 - posting data via XMLHttpRequest doesn't work (wrong Content-Type).
-Should be application/xml:
+Should be text/plain;charset=UTF-8:
-application/xml
+text/plain;charset=UTF-8
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type.html (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type.html 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type.html 2014-09-04 07:03:54 UTC (rev 173254)
@@ -2,7 +2,7 @@
<body>
<p>Test for <a href="" 3565</a>
- posting data via XMLHttpRequest doesn't work (wrong Content-Type).</p>
-<p>Should be application/xml:</p>
+<p>Should be text/plain;charset=UTF-8:</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/request-encoding2.html (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/request-encoding2.html 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/request-encoding2.html 2014-09-04 07:03:54 UTC (rev 173254)
@@ -18,7 +18,7 @@
req.send("");
document.getElementById("result1").firstChild.data = "" (setRequestHeader was not called):";
- if (req.responseText == "application/xml\n")
+ if (req.responseText == "text/plain;charset=UTF-8\n")
document.getElementById("result1").firstChild.data += " SUCCESS";
else
document.getElementById("result1").firstChild.data += " FAILURE: '" + req.responseText + "'";
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-async-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(0 bytes), Content-Type: null
HEAD(null): HEAD(0 bytes), Content-Type: null
HEAD("123"): HEAD(0 bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(0 bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Property changes on: trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
___________________________________________________________________
Added: svn:executable
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,21 +3,21 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt (173253 => 173254)
--- trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt 2014-09-04 07:03:54 UTC (rev 173254)
@@ -3,22 +3,22 @@
GET(""): GET(null bytes), Content-Type: null
GET(null): GET(null bytes), Content-Type: null
GET("123"): GET(null bytes), Content-Type: null
-POST(""): POST(0 bytes), Content-Type: application/xml
+POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8
POST(null): POST(0 bytes), Content-Type: null
-POST("123"): POST(3 bytes), Content-Type: application/xml
-PUT(""): PUT(0 bytes), Content-Type: application/xml
+POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8
+PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8
PUT(null): PUT(0 bytes), Content-Type: null
-PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
+PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8
+DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8
DELETE(null): DELETE(null bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
+DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8
HEAD(""): HEAD(null bytes), Content-Type: null
HEAD(null): HEAD(null bytes), Content-Type: null
HEAD("123"): HEAD(null bytes), Content-Type: null
-WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
+WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8
WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null
-WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml
-SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml
+WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8
+SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8
SEARCH(null): SEARCH(null bytes), Content-Type: null
-SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml
+SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8
DONE
Modified: trunk/Source/WebCore/ChangeLog (173253 => 173254)
--- trunk/Source/WebCore/ChangeLog 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/Source/WebCore/ChangeLog 2014-09-04 07:03:54 UTC (rev 173254)
@@ -1,3 +1,18 @@
+2014-09-03 Youenn Fablet <[email protected]>
+
+ XMLHttpRequest always defaults Content-Type to application/xml, while it should depend on data type
+ https://bugs.webkit.org/show_bug.cgi?id=11049
+
+ Reviewed by Darin Adler.
+
+ Updated default mime type when sending text (changed from application/xml to text/plain;charset=UTF-8)
+ Updated default mime type when sending document (set to application/xml;charset=UTF-8 for XML documents and text/html;charset=UTF-8 for HTML documents)
+
+ Test: http/tests/xmlhttprequest/post-content-type-document.html
+
+ * xml/XMLHttpRequest.cpp:
+ (WebCore::XMLHttpRequest::send): updating default Content-Type valuess.
+
2014-09-02 Brian J. Burg <[email protected]>
Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
Modified: trunk/Source/WebCore/xml/XMLHttpRequest.cpp (173253 => 173254)
--- trunk/Source/WebCore/xml/XMLHttpRequest.cpp 2014-09-04 06:46:42 UTC (rev 173253)
+++ trunk/Source/WebCore/xml/XMLHttpRequest.cpp 2014-09-04 07:03:54 UTC (rev 173254)
@@ -593,16 +593,14 @@
else
#endif
// FIXME: this should include the charset used for encoding.
- setRequestHeaderInternal("Content-Type", "application/xml");
+ setRequestHeaderInternal("Content-Type", document->isHTMLDocument() ? "text/html;charset=UTF-8":"application/xml;charset=UTF-8");
}
// FIXME: According to XMLHttpRequest Level 2, this should use the Document.innerHTML algorithm
// from the HTML5 specification to serialize the document.
String body = createMarkup(*document);
- // FIXME: this should use value of document.inputEncoding to determine the encoding to use.
- TextEncoding encoding = UTF8Encoding();
- m_requestEntityBody = FormData::create(encoding.encode(body, EntitiesForUnencodables));
+ m_requestEntityBody = FormData::create(UTF8Encoding().encode(body, EntitiesForUnencodables));
if (m_upload)
m_requestEntityBody->setAlwaysStream(true);
}
@@ -623,7 +621,7 @@
setRequestHeaderInternal("Content-Type", "application/x-www-form-urlencoded");
else
#endif
- setRequestHeaderInternal("Content-Type", "application/xml");
+ setRequestHeaderInternal("Content-Type", "text/plain;charset=UTF-8");
} else {
replaceCharsetInMediaType(contentType, "UTF-8");
m_requestHeaders.set(HTTPHeaderName::ContentType, contentType);