Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66b6d48b3af443d2ac818813c4c39baaad0ad2d4
      
https://github.com/WebKit/WebKit/commit/66b6d48b3af443d2ac818813c4c39baaad0ad2d4
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-07 (Tue, 07 Jul 2026)

  Changed paths:
    M Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp

  Log Message:
  -----------
  Use prefix increment for std::set iterators in IndexValueStore
https://bugs.webkit.org/show_bug.cgi?id=318767

Reviewed by Sihui Liu.

In IndexValueStore::find() and IndexValueStore::reverseFind(), the
fallback paths that advance to the next record used post-increment
(iterator++) on an IDBKeyDataSet (std::set) iterator. Since the return
value is discarded, this needlessly constructs a throwaway copy of the
iterator. Switch to prefix increment (++iterator).

No change in behavior.

* Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp:
(WebCore::IDBServer::IndexValueStore::find):
(WebCore::IDBServer::IndexValueStore::reverseFind):

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



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

Reply via email to