forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URLParser should percent-encode non-ASCII and non-printable character…
…s in fragment https://bugs.webkit.org/show_bug.cgi?id=163287 Reviewed by Brady Eidson. Source/WebCore: Based on discussion in whatwg/url#150 If that discussion decides to keep the spec as-is (which keeps non-ASCII characters in the fragment to match IE and Edge's behavior, which Chrome has followed for special schemes) then we can revert this change later after enabling the URL parser. Making this change keeps behavior matching Safari and Firefox, as well as Chrome's handling of non-special schemes, such as data URLs. Covered by updated API tests. * platform/URLParser.cpp: (WebCore::URLParser::appendToASCIIBuffer): (WebCore::URLParser::copyURLPartsUntil): (WebCore::URLParser::syntaxViolation): (WebCore::URLParser::currentPosition): (WebCore::URLParser::parse): (WebCore::URLParser::fragmentSyntaxViolation): Deleted. * platform/URLParser.h: No more non-ASCII characters in canonicalized URLs. Tools: * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::TEST_F): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@207152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
69b7052
commit e34a7cb
Showing
5 changed files
with
49 additions
and
97 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,28 @@ | ||
2016-10-11 Alex Christensen <[email protected]> | ||
|
||
URLParser should percent-encode non-ASCII and non-printable characters in fragment | ||
https://bugs.webkit.org/show_bug.cgi?id=163287 | ||
|
||
Reviewed by Brady Eidson. | ||
|
||
Based on discussion in https://github.com/whatwg/url/issues/150 | ||
If that discussion decides to keep the spec as-is (which keeps non-ASCII characters in the fragment | ||
to match IE and Edge's behavior, which Chrome has followed for special schemes) then we can revert | ||
this change later after enabling the URL parser. Making this change keeps behavior matching Safari | ||
and Firefox, as well as Chrome's handling of non-special schemes, such as data URLs. | ||
|
||
Covered by updated API tests. | ||
|
||
* platform/URLParser.cpp: | ||
(WebCore::URLParser::appendToASCIIBuffer): | ||
(WebCore::URLParser::copyURLPartsUntil): | ||
(WebCore::URLParser::syntaxViolation): | ||
(WebCore::URLParser::currentPosition): | ||
(WebCore::URLParser::parse): | ||
(WebCore::URLParser::fragmentSyntaxViolation): Deleted. | ||
* platform/URLParser.h: | ||
No more non-ASCII characters in canonicalized URLs. | ||
|
||
2016-10-11 Alex Christensen <[email protected]> | ||
|
||
Remove dead networking code | ||
|
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,13 @@ | ||
2016-10-11 Alex Christensen <[email protected]> | ||
|
||
URLParser should percent-encode non-ASCII and non-printable characters in fragment | ||
https://bugs.webkit.org/show_bug.cgi?id=163287 | ||
|
||
Reviewed by Brady Eidson. | ||
|
||
* TestWebKitAPI/Tests/WebCore/URLParser.cpp: | ||
(TestWebKitAPI::TEST_F): | ||
|
||
2016-10-11 Alex Christensen <[email protected]> | ||
|
||
Remove dead networking code | ||
|
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