[webkit-changes] [WebKit/WebKit] 72e7d1: Extend PublicSuffix List with convenience method t...
Brent Fulgham
noreply at github.com
Mon Dec 16 09:11:18 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 72e7d13f0b054ebe4abf9e8f7a5bdfc404f89a53
https://github.com/WebKit/WebKit/commit/72e7d13f0b054ebe4abf9e8f7a5bdfc404f89a53
Author: Brent Fulgham <bfulgham at apple.com>
Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths:
M Source/WebCore/platform/PublicSuffixStore.cpp
M Source/WebCore/platform/PublicSuffixStore.h
M Tools/TestWebKitAPI/Tests/WebCore/PublicSuffix.cpp
Log Message:
-----------
Extend PublicSuffix List with convenience method to access URL domain without the public suffix
https://bugs.webkit.org/show_bug.cgi?id=284650
<rdar://problem/141452522>
Reviewed by Matthew Finkel.
Add two new convenience methods to the PublicSuffixStore that allow a StringView to be passed, returning a String that is the passed domain with any Public Suffix removed.
This will be used for future Quirk pattern matching.
Tested by new API tests.
* Source/WebCore/platform/PublicSuffixStore.cpp:
(WebCore::PublicSuffixStore::topPrivatelyControlledDomainWithoutPublicSuffix const):
(WebCore::PublicSuffixStore::domainWithoutPublicSuffix const):
* Source/WebCore/platform/PublicSuffixStore.h:
* Tools/TestWebKitAPI/Tests/WebCore/PublicSuffix.cpp:
(TestWebKitAPI::TEST_F(PublicSuffix, topPrivatelyControlledDomainWithoutPublicSuffix)):
Canonical link: https://commits.webkit.org/287886@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list