Hi Team, Can I use the following code to simulate a browser action click: chrome.tabs.getSelected(null, function(tab) { var backgroundPage = chrome.extension.getBackgroundPage(); backgroundPage.chrome.browserAction.onClicked.dispatch(tab); });
This code does work, but AFAIU, the chrome.browserAction.onClicked.dispatch() is NOT a documented API, is it? But still I'll ask, can I rely on it? :) And, as a side note: notice that I have to use the backgroundPage's chrome object to do the trick when the code is being run inside a browserAction's popup page. Bother to explain why the direct chrome.browserAction.onClicked.dispatch() would not work? :) Thanks.
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.