Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: fd411fd47c593392ef742cf80a67a054afe168aa https://github.com/WebKit/WebKit/commit/fd411fd47c593392ef742cf80a67a054afe168aa Author: Arvind Kutirakulam <akut...@umich.edu> Date: 2025-08-14 (Thu, 14 Aug 2025)
Changed paths: M Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPIBookmarksCocoa.mm M Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIBookmarksCocoa.mm M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIBookmarks.mm Log Message: ----------- Web Extensions: Lets extensions search bookmarks by title and/or URL using Bookmarks API rdar://152505372 https://bugs.webkit.org/show_bug.cgi?id=297250 Reviewed by Brian Weinstein. Implements the WebProcess and UIProcess for the bookmarks.search() function. Includes testing as well. Parses the query parameter by each word and locates it in the list of bookmarks from the bookmarksForExtensionContext delegate function. For title and url, the types have to match exactly for it be added to the returned array. * Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPIBookmarksCocoa.mm: (WebKit::WebExtensionContext::isBookmarksMessageAllowed): (WebKit::containsIgnoringASCIICase): (WebKit::normalizeURLStringForComparison): (WebKit::WebExtensionContext::bookmarksGetRecent): (WebKit::WebExtensionContext::bookmarksSearch): * Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIBookmarksCocoa.mm: (WebKit::WebExtensionAPIBookmarks::search): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIBookmarks.mm: (TestWebKitAPI::TEST_F(WKWebExtensionAPIBookmarks, BookmarksAPISearch)): Canonical link: https://commits.webkit.org/298686@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes