Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aab7e1241978cc44e455e7ce23a7d130e211738f
https://github.com/WebKit/WebKit/commit/aab7e1241978cc44e455e7ce23a7d130e211738f
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-12 (Sat, 12 Sep 2026)
Changed paths:
M Source/WebCore/platform/network/ResourceRequestBase.cpp
Log Message:
-----------
ResourceRequestBase::upgradeInsecureRequestIfNeeded() evaluates url.host()
twice
https://bugs.webkit.org/show_bug.cgi?id=324030
rdar://187260500
Reviewed by Chris Dumez.
upgradeInsecureRequestIfNeeded() called url.host() twice in the same
expression when testing for localhost/IP addresses. Cache the result in
a local and reuse it.
* Source/WebCore/platform/network/ResourceRequestBase.cpp:
(WebCore::ResourceRequestBase::upgradeInsecureRequestIfNeeded):
Canonical link: https://commits.webkit.org/320987@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications