ASSIGNED301624
Page icon load decisions should be queried all at once
https://bugs.webkit.org/show_bug.cgi?id=301624
Summary Page icon load decisions should be queried all at once
Adrian Perez
Reported 2025-10-29 04:38:34 PDT
While working on bug #301088, I noticed that in the WebProcess we know all the icons for a page, but then querying whether they are to be loaded is done one at a time: void WebLocalFrameLoaderClient::getLoadDecisionForIcons(const Vector<std::pair<WebCore::LinkIcon&, uint64_t>>& icons) { RefPtr webPage = m_frame->page(); if (!webPage) return; for (auto& icon : icons) webPage->send(Messages::WebPageProxy::GetLoadDecisionForIcon(icon.first, CallbackID::fromInteger(icon.second))); } It would be desirable to pass all icons at once for the following reasons: - Currently the UIProcess cannot not know how many icons will be loaded, and therefore cannot know when the job is done for a given page. Passing all the candidate icons we can know for which set of loads to complete. We would like to do this for the GTK and WPE ports (see bug #301086) - The IconLoadingClient in the UIProcess can make a better decision about which icons to load if it knows about all of them. - Sending a single message should be fine, they won't typically be a huge amount of them, and not very long.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-11-05 03:39:10 PST
Note You need to log in before you can comment on or make changes to this bug.