omnibox is undefined?

279 views
Skip to first unread message

Roy Kolak

unread,
Aug 29, 2013, 5:51:03 PM8/29/13
to chromium-...@chromium.org
Kinda experiencing an odd error. Was wondering if anyone has some insight:

Uncaught TypeError: Cannot read property 'onInputChanged' of undefined

coming from a call to: chrome.omnibox.onInputChanged. My initial thought was that chrome.omnibox was not available for the user. So I added a minimum chrome version, 22, to the manifest. However, I'm still seeing this issue and have learned that this is the browser agent: 

Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 OPR/16.0.1196.62

Chrome 29. Any ideas why chrome.omnibox would be undefined in Chrome 29? 

Rob Wu

unread,
Aug 29, 2013, 6:10:24 PM8/29/13
to chromium-...@chromium.org
Did you specify the "omnibox" keyword in the manifest file? I recall a recent issue on the bug tracker about chrome.commands, chrome.pageAction, etc. being unavailable when their manifest fields were missing.

Roy Kolak

unread,
Aug 30, 2013, 12:13:10 AM8/30/13
to chromium-...@chromium.org
yeah, I do have an omnibox property specified. Something else odd, I just notice this error came through also:

Uncaught TypeError: Cannot read property 'onClicked' of undefined

when trying to access chrome.browserAction.onClicked. The browser agent is extremely close (both errors can from Chrome 29):
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36

PhistucK

unread,
Aug 30, 2013, 4:05:21 AM8/30/13
to Roy Kolak, Chromium-extensions
Are you calling them from a background page?


PhistucK


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/470e564c-f20f-4524-ad53-d53863bad2db%40chromium.org.

Roy Kolak

unread,
Aug 30, 2013, 10:13:35 AM8/30/13
to PhistucK, Chromium-extensions
Yeah, they are.
Reply all
Reply to author
Forward
0 new messages