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 match old URL::parse with %2E in path
https://bugs.webkit.org/show_bug.cgi?id=163929 Reviewed by Alexey Proskuryakov. LayoutTests/imported/w3c: * web-platform-tests/url/a-element-expected.txt: * web-platform-tests/url/a-element-xhtml-expected.txt: * web-platform-tests/url/url-constructor-expected.txt: Source/WebCore: Covered by updated API tests, which show that URLParser now matches URL::parse in these cases. Also covered by newly failing web platform tests, which were failing before URLParser was enabled. If whatwg/url#87 is resolved we can change behavior to match. * platform/URLParser.cpp: (WebCore::URLParser::isSingleDotPathSegment): (WebCore::URLParser::isDoubleDotPathSegment): (WebCore::URLParser::consumeSingleDotPathSegment): (WebCore::URLParser::consumeDoubleDotPathSegment): (WebCore::URLParser::parse): (WebCore::URLParser::isPercentEncodedDot): Deleted. Tools: * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::TEST_F): LayoutTests: * fast/url/path-expected.txt: * fast/url/standard-url-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@207805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
6fe0acd
commit a804f38
Showing
11 changed files
with
90 additions
and
144 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,13 @@ | ||
2016-10-24 Alex Christensen <[email protected]> | ||
|
||
URLParser should match old URL::parse with %2E in path | ||
https://bugs.webkit.org/show_bug.cgi?id=163929 | ||
|
||
Reviewed by Alexey Proskuryakov. | ||
|
||
* fast/url/path-expected.txt: | ||
* fast/url/standard-url-expected.txt: | ||
|
||
2016-10-24 Zalan Bujtas <[email protected]> | ||
|
||
Do not update selection rect on dirty lineboxes. | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ PASS canonicalize('http://[www.google.com]/') is 'http://[www.google.com]/' | |
PASS canonicalize('http://www.google.com') is 'http://www.google.com/' | ||
PASS canonicalize('http:////////user:@google.com:99?foo') is 'http://[email protected]:99/?foo' | ||
PASS canonicalize('http://192.0x00A80001') is 'http://192.168.0.1/' | ||
PASS canonicalize('http://www/foo%2Ehtml') is 'http://www/foo.html' | ||
FAIL canonicalize('http://www/foo%2Ehtml') should be http://www/foo.html. Was http://www/foo%2Ehtml. | ||
PASS canonicalize('http://user:pass@/') is 'http://user:pass@/' | ||
PASS canonicalize('http://%25DOMAIN:[email protected]/') is 'http://%25DOMAIN:[email protected]/' | ||
PASS canonicalize('http:\\\\www.google.com\\foo') is 'http://www.google.com/foo' | ||
|
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,14 @@ | ||
2016-10-24 Alex Christensen <[email protected]> | ||
|
||
URLParser should match old URL::parse with %2E in path | ||
https://bugs.webkit.org/show_bug.cgi?id=163929 | ||
|
||
Reviewed by Alexey Proskuryakov. | ||
|
||
* web-platform-tests/url/a-element-expected.txt: | ||
* web-platform-tests/url/a-element-xhtml-expected.txt: | ||
* web-platform-tests/url/url-constructor-expected.txt: | ||
|
||
2016-10-24 Ryan Haddad <[email protected]> | ||
|
||
Unreviewed, rolling out r207795. | ||
|
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 |
---|---|---|
|
@@ -126,9 +126,9 @@ PASS Parsing: <http://example.com/foo/bar/../ton> against <about:blank> | |
PASS Parsing: <http://example.com/foo/bar/../ton/../../a> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../../ton> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e%2> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> | ||
FAIL Parsing: <http://example.com/foo/%2e> against <about:blank> assert_equals: href expected "http://example.com/foo/" but got "http://example.com/foo/%2e" | ||
FAIL Parsing: <http://example.com/foo/%2e%2> against <about:blank> assert_equals: href expected "http://example.com/foo/.%2" but got "http://example.com/foo/%2e%2" | ||
FAIL Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> assert_equals: href expected "http://example.com/..bar" but got "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar" | ||
PASS Parsing: <http://example.com////../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//..> against <about:blank> | ||
|
@@ -157,8 +157,8 @@ FAIL Parsing: <data:test# »> against <about:blank> assert_equals: href expected | |
PASS Parsing: <http://[www.google.com]/> against <about:blank> | ||
PASS Parsing: <http://www.google.com> against <about:blank> | ||
PASS Parsing: <http://192.0x00A80001> against <about:blank> | ||
PASS Parsing: <http://www/foo%2Ehtml> against <about:blank> | ||
PASS Parsing: <http://www/foo/%2E/html> against <about:blank> | ||
FAIL Parsing: <http://www/foo%2Ehtml> against <about:blank> assert_equals: href expected "http://www/foo.html" but got "http://www/foo%2Ehtml" | ||
FAIL Parsing: <http://www/foo/%2E/html> against <about:blank> assert_equals: href expected "http://www/foo/html" but got "http://www/foo/%2E/html" | ||
PASS Parsing: <http://user:pass@/> against <about:blank> | ||
PASS Parsing: <http://%25DOMAIN:[email protected]/> against <about:blank> | ||
PASS Parsing: <http:\\www.google.com\foo> against <about:blank> | ||
|
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 |
---|---|---|
|
@@ -126,9 +126,9 @@ PASS Parsing: <http://example.com/foo/bar/../ton> against <about:blank> | |
PASS Parsing: <http://example.com/foo/bar/../ton/../../a> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../../ton> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e%2> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> | ||
FAIL Parsing: <http://example.com/foo/%2e> against <about:blank> assert_equals: href expected "http://example.com/foo/" but got "http://example.com/foo/%2e" | ||
FAIL Parsing: <http://example.com/foo/%2e%2> against <about:blank> assert_equals: href expected "http://example.com/foo/.%2" but got "http://example.com/foo/%2e%2" | ||
FAIL Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> assert_equals: href expected "http://example.com/..bar" but got "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar" | ||
PASS Parsing: <http://example.com////../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//..> against <about:blank> | ||
|
@@ -157,8 +157,8 @@ FAIL Parsing: <data:test# »> against <about:blank> assert_equals: href expected | |
PASS Parsing: <http://[www.google.com]/> against <about:blank> | ||
PASS Parsing: <http://www.google.com> against <about:blank> | ||
PASS Parsing: <http://192.0x00A80001> against <about:blank> | ||
PASS Parsing: <http://www/foo%2Ehtml> against <about:blank> | ||
PASS Parsing: <http://www/foo/%2E/html> against <about:blank> | ||
FAIL Parsing: <http://www/foo%2Ehtml> against <about:blank> assert_equals: href expected "http://www/foo.html" but got "http://www/foo%2Ehtml" | ||
FAIL Parsing: <http://www/foo/%2E/html> against <about:blank> assert_equals: href expected "http://www/foo/html" but got "http://www/foo/%2E/html" | ||
PASS Parsing: <http://user:pass@/> against <about:blank> | ||
PASS Parsing: <http://%25DOMAIN:[email protected]/> against <about:blank> | ||
PASS Parsing: <http:\\www.google.com\foo> against <about:blank> | ||
|
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 |
---|---|---|
|
@@ -130,9 +130,9 @@ PASS Parsing: <http://example.com/foo/bar/../ton> against <about:blank> | |
PASS Parsing: <http://example.com/foo/bar/../ton/../../a> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/../../../ton> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e%2> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> | ||
FAIL Parsing: <http://example.com/foo/%2e> against <about:blank> assert_equals: href expected "http://example.com/foo/" but got "http://example.com/foo/%2e" | ||
FAIL Parsing: <http://example.com/foo/%2e%2> against <about:blank> assert_equals: href expected "http://example.com/foo/.%2" but got "http://example.com/foo/%2e%2" | ||
FAIL Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> assert_equals: href expected "http://example.com/..bar" but got "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar" | ||
PASS Parsing: <http://example.com////../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//../..> against <about:blank> | ||
PASS Parsing: <http://example.com/foo/bar//..> against <about:blank> | ||
|
@@ -161,8 +161,8 @@ FAIL Parsing: <data:test# »> against <about:blank> assert_equals: href expected | |
PASS Parsing: <http://[www.google.com]/> against <about:blank> | ||
PASS Parsing: <http://www.google.com> against <about:blank> | ||
PASS Parsing: <http://192.0x00A80001> against <about:blank> | ||
PASS Parsing: <http://www/foo%2Ehtml> against <about:blank> | ||
PASS Parsing: <http://www/foo/%2E/html> against <about:blank> | ||
FAIL Parsing: <http://www/foo%2Ehtml> against <about:blank> assert_equals: href expected "http://www/foo.html" but got "http://www/foo%2Ehtml" | ||
FAIL Parsing: <http://www/foo/%2E/html> against <about:blank> assert_equals: href expected "http://www/foo/html" but got "http://www/foo/%2E/html" | ||
PASS Parsing: <http://user:pass@/> against <about:blank> | ||
PASS Parsing: <http://%25DOMAIN:[email protected]/> against <about:blank> | ||
PASS Parsing: <http:\\www.google.com\foo> against <about:blank> | ||
|
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,22 @@ | ||
2016-10-24 Alex Christensen <[email protected]> | ||
|
||
URLParser should match old URL::parse with %2E in path | ||
https://bugs.webkit.org/show_bug.cgi?id=163929 | ||
|
||
Reviewed by Alexey Proskuryakov. | ||
|
||
Covered by updated API tests, which show that URLParser now matches URL::parse in these cases. | ||
Also covered by newly failing web platform tests, which were failing before URLParser was enabled. | ||
If https://github.com/whatwg/url/issues/87 is resolved we can change behavior to match. | ||
|
||
* platform/URLParser.cpp: | ||
(WebCore::URLParser::isSingleDotPathSegment): | ||
(WebCore::URLParser::isDoubleDotPathSegment): | ||
(WebCore::URLParser::consumeSingleDotPathSegment): | ||
(WebCore::URLParser::consumeDoubleDotPathSegment): | ||
(WebCore::URLParser::parse): | ||
(WebCore::URLParser::isPercentEncodedDot): Deleted. | ||
|
||
2016-10-24 Zalan Bujtas <[email protected]> | ||
|
||
Do not update selection rect on dirty lineboxes. | ||
|
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-24 Alex Christensen <[email protected]> | ||
|
||
URLParser should match old URL::parse with %2E in path | ||
https://bugs.webkit.org/show_bug.cgi?id=163929 | ||
|
||
Reviewed by Alexey Proskuryakov. | ||
|
||
* TestWebKitAPI/Tests/WebCore/URLParser.cpp: | ||
(TestWebKitAPI::TEST_F): | ||
|
||
2016-10-24 Ryan Haddad <[email protected]> | ||
|
||
Unreviewed, rolling out r207795. | ||
|
Oops, something went wrong.