Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 72e7d13f0b054ebe4abf9e8f7a5bdfc404f89a53
https://github.com/WebKit/WebKit/commit/72e7d13f0b054ebe4abf9e8f7a5bdfc404f89a53
Author: Brent Fulgham <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes