Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
XMLHttpRequest.open should use USVString
https://bugs.webkit.org/show_bug.cgi?id=215704

Patch by Rob Buis <rbuis@igalia.com> on 2020-08-20
Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

Update improved test result.

* web-platform-tests/xhr/open-url-encoding-expected.txt:

Source/WebCore:

XMLHttpRequest.open should use USVString as mentioned in the FIXMEs and the spec [1].

Test: imported/w3c/web-platform-tests/xhr/open-url-encoding.html

[1] https://xhr.spec.whatwg.org/#ref-for-dom-xmlhttprequest-open

* xml/XMLHttpRequest.idl:

Canonical link: https://commits.webkit.org/228461@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
rwlbuis authored and webkit-commit-queue committed Aug 20, 2020
1 parent 39f1a80 commit 96b3cff
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
11 changes: 11 additions & 0 deletions LayoutTests/imported/w3c/ChangeLog
@@ -1,3 +1,14 @@
2020-08-20 Rob Buis <rbuis@igalia.com>

XMLHttpRequest.open should use USVString
https://bugs.webkit.org/show_bug.cgi?id=215704

Reviewed by Chris Dumez.

Update improved test result.

* web-platform-tests/xhr/open-url-encoding-expected.txt:

2020-08-20 Clark Wang <clark_wang@apple.com>

Introduce StereoPannerNode Interface
Expand Down
@@ -1,4 +1,4 @@

PASS percent encode characters
FAIL lone surrogate assert_equals: expected "%26%2365533%3B" but got "%26%2355357%3B"
PASS lone surrogate

15 changes: 15 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,18 @@
2020-08-20 Rob Buis <rbuis@igalia.com>

XMLHttpRequest.open should use USVString
https://bugs.webkit.org/show_bug.cgi?id=215704

Reviewed by Chris Dumez.

XMLHttpRequest.open should use USVString as mentioned in the FIXMEs and the spec [1].

Test: imported/w3c/web-platform-tests/xhr/open-url-encoding.html

[1] https://xhr.spec.whatwg.org/#ref-for-dom-xmlhttprequest-open

* xml/XMLHttpRequest.idl:

2020-08-20 Clark Wang <clark_wang@apple.com>

Introduce StereoPannerNode Interface
Expand Down
4 changes: 2 additions & 2 deletions Source/WebCore/xml/XMLHttpRequest.idl
Expand Up @@ -61,8 +61,8 @@ enum XMLHttpRequestResponseType {
readonly attribute unsigned short readyState;

// request
[MayThrowException] void open(ByteString method, DOMString url); // FIXME: url should be a USVString.
[MayThrowException] void open(ByteString method, DOMString url, boolean async, optional DOMString? user = null, optional DOMString? password = null); // FIXME: url/user/password should all be a USVStrings.
[MayThrowException] void open(ByteString method, USVString url);
[MayThrowException] void open(ByteString method, USVString url, boolean async, optional USVString? user = null, optional USVString? password = null);
[MayThrowException] void setRequestHeader(ByteString header, ByteString value);
attribute unsigned long timeout;
attribute boolean withCredentials;
Expand Down

0 comments on commit 96b3cff

Please sign in to comment.