chrome-extensions-samples
chrome-extensions-samples copied to clipboard
Update omnibox sample to v3 manifest
Could you update the omnibox examples for the new manifest?
https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/mv2-archive/api/omnibox
Thanks!
When using manifest v3, I'm not able to add auto suggestions to the omnibox when input is changed. I tried using the following snippet from the v2 example, but it doesn't work.
https://github.com/GoogleChrome/chrome-extensions-samples/blob/e716678b67fd30a5876a552b9665e9f847d6d84b/mv2-archive/api/omnibox/simple-example/background.js#L9-L16
When I add the snippet to background.js
and then reload the extension, I get the following error:
An updated example that demonstrates suggestions would be greatly appreciated.
For anyone who is encountering errors with the omnibox API using manifest v3, note there is an open bug with the platform that prevents the omnibox from displaying suggestions. More details provided in https://github.com/GoogleChrome/chrome-extensions-samples/issues/541#issuecomment-796206471.
In the meantime, the only way I can get the omnibox to display suggested results is to use manifest v2.
I've read that the issue with the manifest was fixed, if it is so could you now prepare a working v3 sample for using this feature?
this was fixed in #573