On Tue, Jan 5, 2010 at 5:26 PM, Evan <evan.j...@gmail.com> wrote:
> I have been working on an extension that allows you to switch tabs by
> selecting from a dropdown ( 
> https://chrome.google.com/extensions/detail/jnjfeinjfmenlddahdjdmgpbokiacbbb
> ), if the tab you select is in a different window I have resorted to
> moving the selected tab to the window that is currently in focus, this
> is less than ideal :(
>
> I have tried:
>
> chrome.tabs.get(tabid, function(tab) {
>  chrome.windows.update(tab.windowId, {}, function(w) {
>    chrome.tabs.update(tab.id, {selected:true});
>  });
> });

Try: chrome.tabs.executeScript(tabId, {code:"window.focus()"}) ?

- a
-- 
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.


Reply via email to