RESOLVED FIXED301088
[GLib] Make IconDatabase handle multiple per-page icons
https://bugs.webkit.org/show_bug.cgi?id=301088
Summary [GLib] Make IconDatabase handle multiple per-page icons
Adrian Perez
Reported 2025-10-20 05:32:29 PDT
In Source/WebKit/UIProcess/API/glib/IconDatabase.{h,cpp} we would need to: - Store multiple entries per page in IconDatabase::m_pageURLToIconURLMap - IconDatabase::iconURLForPageURL() method may return multiple URLs. - IconDatabase::loadIconsForPageURL() may load and pass multiple items to the completion handler. - IconDatabase::setIconForPageURL() ideally would update all page icons in a single shot, instead of one-by-one incrementally. - IconDatabase::checkIconURLAndSetPageURLIfNeeded(): Ditto.
Attachments
Adrian Perez
Comment 1 2025-10-29 02:58:41 PDT
Adrian Perez
Comment 2 2025-10-29 03:15:04 PDT
(In reply to Adrian Perez from comment #1) > Pull request: https://github.com/WebKit/WebKit/pull/53135 This patch tackles items 1-2-3 above, updating all the icons in one-shot, to avoid setting the WebKitWebView::favicon property multiple time IMO it will be better done in a separate patch because it needs to touch IPC code and add a mechanism in the IconDatabase (or WebKitFaviconDatabase, not sure yet what's the best place) to track a set of icons to load and setting properties only once all of them have been provided, either by the FrameLoader, or lifting them from the cached versions (from the database, or the in-memory cache).
EWS
Comment 3 2025-10-29 13:05:05 PDT
Committed 302307@main (a388e15a5725): <https://commits.webkit.org/302307@main> Reviewed commits have been landed. Closing PR #53135 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.