In Chrome you can search for bookmarks by providing a string containing search terms. Search terms are space-delimited, but you can search for strings that include spaces by quoting them. So given a bookmarks with a title like "Example Domain": example -> matches example domain -> matches domain example -> matches "example domain" -> matches "domain example" -> does not match In Firefox, you can't quote search terms: example -> matches example domain -> matches domain example -> matches "example domain" -> does not match "domain example" -> does not match https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/bookmarks/search
We should try to use the same parser for both of these APIs.
Confirmed that Chrome actually does match its documented behavior for downloads.search(). Specifically, it only accepts an array for query, not a string. And the elements of the array are used as search terms without any further parsing or processing. This is a sane API and I think we should do the same for downloads, bookmarks is obviously complicated by the goal of being compatible with existing Chrome extensions that rely on parsing...
Is this something you still plan on working on this :johannh?
Hey Andy, technically I'm still planning to do this but if you folks have capacity or want this done quickly I don't mind giving it up :)