Title: [250787] trunk
Revision
250787
Author
[email protected]
Date
2019-10-07 13:41:59 -0700 (Mon, 07 Oct 2019)

Log Message

Change Response's statusText's default
https://bugs.webkit.org/show_bug.cgi?id=191879

Patch by Rob Buis <[email protected]> on 2019-10-07
Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Update improved test results.

* web-platform-tests/fetch/api/response/response-clone-expected.txt:
* web-platform-tests/fetch/api/response/response-init-001-expected.txt:

Source/WebCore:

Change Response's statusText's default to "".

Tests: web-platform-tests/fetch/api/response/response-clone.html
       web-platform-tests/fetch/api/response/response-init-001.html

* Modules/fetch/FetchResponse.h:
* Modules/fetch/FetchResponse.idl:

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (250786 => 250787)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2019-10-07 20:41:59 UTC (rev 250787)
@@ -1,3 +1,15 @@
+2019-10-07  Rob Buis  <[email protected]>
+
+        Change Response's statusText's default
+        https://bugs.webkit.org/show_bug.cgi?id=191879
+
+        Reviewed by Youenn Fablet.
+
+        Update improved test results.
+
+        * web-platform-tests/fetch/api/response/response-clone-expected.txt:
+        * web-platform-tests/fetch/api/response/response-init-001-expected.txt:
+
 2019-10-07  Alexey Shvayka  <[email protected]>
 
         Sync web-platform-tests/css/css-overflow from upstream

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-clone-expected.txt (250786 => 250787)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-clone-expected.txt	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-clone-expected.txt	2019-10-07 20:41:59 UTC (rev 250787)
@@ -1,5 +1,5 @@
 
-FAIL Check Response's clone with default values, without body assert_equals: Expect default response.statusText is  expected "" but got "OK"
+PASS Check Response's clone with default values, without body 
 PASS Check Response's clone has the expected attribute values 
 PASS Check orginal response's body after cloning 
 PASS Check cloned response's body 

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-init-001-expected.txt (250786 => 250787)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-init-001-expected.txt	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/response/response-init-001-expected.txt	2019-10-07 20:41:59 UTC (rev 250787)
@@ -3,7 +3,7 @@
 PASS Check default value for url attribute 
 PASS Check default value for ok attribute 
 PASS Check default value for status attribute 
-FAIL Check default value for statusText attribute assert_equals: Expect default response.statusText is  expected "" but got "OK"
+PASS Check default value for statusText attribute 
 PASS Check default value for body attribute 
 PASS Check status init values and associated getter 
 PASS Check statusText init values and associated getter 

Modified: trunk/Source/WebCore/ChangeLog (250786 => 250787)


--- trunk/Source/WebCore/ChangeLog	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/Source/WebCore/ChangeLog	2019-10-07 20:41:59 UTC (rev 250787)
@@ -1,3 +1,18 @@
+2019-10-07  Rob Buis  <[email protected]>
+
+        Change Response's statusText's default
+        https://bugs.webkit.org/show_bug.cgi?id=191879
+
+        Reviewed by Youenn Fablet.
+
+        Change Response's statusText's default to "".
+
+        Tests: web-platform-tests/fetch/api/response/response-clone.html
+               web-platform-tests/fetch/api/response/response-init-001.html
+
+        * Modules/fetch/FetchResponse.h:
+        * Modules/fetch/FetchResponse.idl:
+
 2019-10-07  Chris Dumez  <[email protected]>
 
         DOMCache should not prevent pages from entering the back/forward cache

Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.h (250786 => 250787)


--- trunk/Source/WebCore/Modules/fetch/FetchResponse.h	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.h	2019-10-07 20:41:59 UTC (rev 250787)
@@ -53,7 +53,7 @@
 
     struct Init {
         unsigned short status { 200 };
-        String statusText { "OK"_s };
+        String statusText;
         Optional<FetchHeaders::Init> headers;
     };
 

Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.idl (250786 => 250787)


--- trunk/Source/WebCore/Modules/fetch/FetchResponse.idl	2019-10-07 20:41:05 UTC (rev 250786)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.idl	2019-10-07 20:41:59 UTC (rev 250787)
@@ -33,7 +33,7 @@
 
 dictionary FetchResponseInit {
     unsigned short status = 200;
-    ByteString statusText = "OK";
+    ByteString statusText = "";
     HeadersInit headers;
 };
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to