Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c775d2dfb3d90fcd1e197727fbf4b2699df9cfe3
https://github.com/WebKit/WebKit/commit/c775d2dfb3d90fcd1e197727fbf4b2699df9cfe3
Author: Claudio Saavedra <[email protected]>
Date: 2026-09-18 (Fri, 18 Sep 2026)
Changed paths:
M Source/WebCore/platform/glib/UserAgentQuirks.cpp
Log Message:
-----------
[GLib] Avoid copying the URL host in UserAgentQuirks::quirksForURL()
https://bugs.webkit.org/show_bug.cgi?id=324544
Reviewed by Carlos Garcia Campos.
quirksForURL() materialised url.host() into a String on every navigation, but
the urlRequires*() helpers only compare their arguments against ASCII literals
and PublicSuffixStore::topPrivatelyControlledDomain() already takes a
StringView. Take StringView in the helpers and pass the host view through.
* Source/WebCore/platform/glib/UserAgentQuirks.cpp:
(WebCore::urlRequiresChromeBrowser):
(WebCore::urlRequiresFirefoxBrowser):
(WebCore::urlRequiresMacintoshPlatform):
(WebCore::urlRequiresAndroidPlatform):
(WebCore::urlRequiresUnbrandedUserAgent):
(WebCore::UserAgentQuirks::quirksForURL):
Canonical link: https://commits.webkit.org/321390@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications