Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6a4054d4115be579c4baed6390d5414d425e9d81
      
https://github.com/WebKit/WebKit/commit/6a4054d4115be579c4baed6390d5414d425e9d81
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M Source/WebCore/platform/network/BlobRegistryImpl.cpp

  Log Message:
  -----------
  BlobRegistryImpl::registerInternalBlobURLForSlice() redundantly re-looks-up 
the blob it already holds
https://bugs.webkit.org/show_bug.cgi?id=323985
rdar://187220435

Reviewed by Alex Christensen.

registerInternalBlobURLForSlice() fetches the source BlobData via
blobDataFromURL(srcURL) into originalData, then immediately calls
blobSize(srcURL) to get its size. blobSize() internally performs a
second blobDataFromURL(srcURL) lookup (stringWithoutFragmentIdentifier,
isValidKey, hashmap get, and the top-origin check) for the exact
BlobData we already have in hand before walking its items to sum the
lengths.

Compute the size directly from originalData->items() instead, dropping
the duplicate hashmap lookup. No behavior change.

* Source/WebCore/platform/network/BlobRegistryImpl.cpp:
(WebCore::BlobRegistryImpl::registerInternalBlobURLForSlice):

Canonical link: https://commits.webkit.org/320967@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to