chrome-extensions-samples icon indicating copy to clipboard operation
chrome-extensions-samples copied to clipboard

Update omnibox sample to v3 manifest

Open skyhirider opened this issue 3 years ago • 2 comments

Could you update the omnibox examples for the new manifest?

https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/mv2-archive/api/omnibox

Thanks!

skyhirider avatar Mar 24 '21 10:03 skyhirider

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:

image

An updated example that demonstrates suggestions would be greatly appreciated.

kevinwhoffman avatar Apr 09 '21 04:04 kevinwhoffman

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.

kevinwhoffman avatar Apr 12 '21 22:04 kevinwhoffman

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?

skyhirider avatar Nov 11 '22 19:11 skyhirider

this was fixed in #573

patrickkettner avatar Mar 20 '23 20:03 patrickkettner