Skip to content

Commit

Permalink
Use-after-move in StorageAccessPromptQuirkController::setCachedQuirks
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=271943
rdar://125667472

Reviewed by Wenson Hsieh.

* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm:
(WebKit::StorageAccessPromptQuirkController::setCachedQuirks):

Canonical link: https://commits.webkit.org/276861@main
  • Loading branch information
charliewolfe committed Mar 31, 2024
1 parent 70d8c3c commit 4908789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void requestLinkDecorationFilteringData(LinkFilteringRulesCallback&& callback)
{
m_cachedQuirks = WTFMove(quirks);
m_cachedQuirks.shrinkToFit();
RELEASE_LOG_ERROR(ResourceLoadStatistics, "StorageAccessPromptQuirkController::setCachedQuirks: Loaded %lu storage access prompt(s) quirks from WebPrivacy.", quirks.size());
RELEASE_LOG(ResourceLoadStatistics, "StorageAccessPromptQuirkController::setCachedQuirks: Loaded %lu storage access prompt(s) quirks from WebPrivacy.", m_cachedQuirks.size());
}

void StorageAccessPromptQuirkController::setCachedQuirksForTesting(Vector<WebCore::OrganizationStorageAccessPromptQuirk>&& quirks)
Expand Down

0 comments on commit 4908789

Please sign in to comment.