隠しプロパティ?タブをアクティブにする。 | chrome extension

content scriptからデータを渡して、既存のタブをアクティブに
開いているタブをアクティブにする方法が分からなかったのですが、なんとか

http://code.google.com/chrome/extensions/tabs.html#method-update

ここをみると
update で active:true くらいしか無いのですが

selected というプロパティが存在していると

    chrome.tabs.update( grBk.menu.tab.id, {selected:true}, function(tab){});

これで行けました!
content scriptからbackgroundを呼んで、background で このupdateをします。

This entry was posted on 火曜日, 4月 10th, 2012 at 4:13 PM and is filed under Chrome Extention. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。