[webkit-changes] [WebKit/WebKit] 3a5924: Update PublicSuffixStore::topPrivatelyControlledDo...

Chris Dumez noreply at github.com
Tue May 21 17:58:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3a59245dd5ef7f9323e0678ed17811cbdab30203
      https://github.com/WebKit/WebKit/commit/3a59245dd5ef7f9323e0678ed17811cbdab30203
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

  Changed paths:
    M Source/WTF/wtf/HashMap.h
    M Source/WTF/wtf/text/StringHash.h
    M Source/WTF/wtf/text/StringImpl.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/platform/PublicSuffixStore.cpp
    M Source/WebCore/platform/PublicSuffixStore.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.cpp
    M Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp

  Log Message:
  -----------
  Update PublicSuffixStore::topPrivatelyControlledDomain() to take in a StringView
https://bugs.webkit.org/show_bug.cgi?id=274480

Reviewed by Darin Adler.

Update PublicSuffixStore::topPrivatelyControlledDomain() to take in a StringView
instead of a String. Most call sites have a StringView and we don't ever need to
construct a String if the host is already in the cache.

* Source/WTF/wtf/HashMap.h:
(WTF::HashMapEnsureTranslatorAdapter::hash):
(WTF::HashMapEnsureTranslatorAdapter::equal):
(WTF::HashMapEnsureTranslatorAdapter::translate):
(WTF::TableTraitsArg>::ensure):
* Source/WTF/wtf/text/StringHash.h:
(WTF::ASCIICaseInsensitiveStringViewHashTranslator::translate):
* Source/WTF/wtf/text/StringImpl.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::urlForBindings const):
* Source/WebCore/page/Quirks.cpp:
(WebCore::isYahooMail):
(WebCore::Quirks::shouldHideSearchFieldResultsButton const):
(WebCore::Quirks::isAmazon const):
(WebCore::Quirks::isGoogleMaps const):
* Source/WebCore/platform/PublicSuffixStore.cpp:
(WebCore::PublicSuffixStore::topPrivatelyControlledDomain const):
* Source/WebCore/platform/PublicSuffixStore.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::resetStateAfterProcessTermination):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch):
(WebKit::WebProcessProxy::didExceedMemoryFootprintThreshold):
* Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:
(TestWebKitAPI::TEST(WTF_HashMap, Ensure_Translator)):

Canonical link: https://commits.webkit.org/279092@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