Both desktop & Fennec implement a unique id per tab, exposing this via the Tab class in the high-level tabs module would be a win:
* some uses cases could be simplified if a specific tab can be uniquely identified
* chrome has it:
Pull request https://github.com/mozilla/addon-sdk/pull/595
I've updated https://github.com/mozilla/addon-sdk/pull/595 to include some basic tests.
Commits pushed to master at https://github.com/mozilla/addon-sdk
bug 795645: expose unique tab ids to the high-level tabs module, now including minimal tests.
Merge pull request #595 from canuckistani/bug_795645
Fix Bug 795645 expose unique tab ids to the high-level tabs module r=@erikvold
I test the commit but there a problem: After move the tab to other browser window, the id not the same.
The Chrome document say: The ID of the tab. Tab IDs are unique within a browser session.
I think it's better to keep it same in the same session like Chrome, not only in a window.