RESOLVED FIXED 206954
[curl] PublicSuffixCurl should skip leading dots
https://bugs.webkit.org/show_bug.cgi?id=206954
Summary [curl] PublicSuffixCurl should skip leading dots
Christopher Reid
Reported 2020-01-29 11:44:24 PST
This test case is failing: EXPECT_EQ(String("test.com"), topPrivatelyControlledDomain(".test.com"));
Attachments
patch (1.95 KB, patch)
2020-01-29 11:50 PST, Christopher Reid
no flags
Christopher Reid
Comment 1 2020-01-29 11:50:54 PST
Fujii Hironori
Comment 2 2020-02-02 18:52:30 PST
Comment on attachment 389168 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=389168&action=review > Source/WebCore/platform/network/curl/PublicSuffixCurl.cpp:73 > + while (domainUTF8.data()[position] == '.') Do you really need to skip multiple leading dots? I know you copied the implementation of PublicSuffixSoup.cpp.
Christopher Reid
Comment 3 2020-02-03 12:01:18 PST
(In reply to Fujii Hironori from comment #2) > Comment on attachment 389168 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=389168&action=review > > > Source/WebCore/platform/network/curl/PublicSuffixCurl.cpp:73 > > + while (domainUTF8.data()[position] == '.') > > Do you really need to skip multiple leading dots? > I know you copied the implementation of PublicSuffixSoup.cpp. Right, the main reason to keep the multiple skip in is to not diverge from Mac/Soup implementations for cases like "..test.com". I'm not sure if we have a case like that in practice though.
WebKit Commit Bot
Comment 4 2020-02-06 14:31:46 PST
Comment on attachment 389168 [details] patch Clearing flags on attachment: 389168 Committed r255983: <https://trac.webkit.org/changeset/255983>
WebKit Commit Bot
Comment 5 2020-02-06 14:31:48 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2020-02-06 14:32:20 PST
Note You need to log in before you can comment on or make changes to this bug.