Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e5c466e3ce900099323ab4a6ff06711af64287a3
https://github.com/WebKit/WebKit/commit/e5c466e3ce900099323ab4a6ff06711af64287a3
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Source/WebCore/page/Quirks.cpp
Log Message:
-----------
Avoid foldCase and URL re-parse when consistent query parameter filtering
quirk is disabled
https://bugs.webkit.org/show_bug.cgi?id=318094
rdar://180889105
Reviewed by Chris Dumez.
Quirks::needsConsistentQueryParameterFilteringQuirk() built a lowercased
copy of the URL (String::foldCase(), which allocates a new string) and
re-parsed it into a URL before checking
Settings::consistentQueryParameterFilteringQuirkEnabled(), which returns
false in the common case and discards all of that work. The quirk is
also reached on every call to mayBenefitFromFingerprintingProtectionQuirk().
Move the settings early-return ahead of the foldCase()/URL construction so
the allocation and parse only happen when the quirk is actually enabled.
No behavior change: the settings check does not depend on lowercaseURL, and
the function-local static wasLoggedOnce is unaffected by the reorder.
* Source/WebCore/page/Quirks.cpp:
Canonical link: https://commits.webkit.org/315998@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications