mozilla/addon-sdk — pull request #1406 by ZER0 (2014-02-19 19:15:36+00:00)
Title: Bug 964489 - add getTabForId to tabs/utils

Notice that even if fennec has its implementation of `getTabForId`, in `BrowserApp` object, is not worthy to use it because the implementation does exactly the same thing – iterate all over the tabs, compare the id, returns a tab if it find it with that id.
So, because there is no advantages to use the fennec's one, with this code we do not need to "branch" the implementation from Firefox and Fennec, and keep the code simpler.

The test case is not added because [Bug 807426](https://bugzilla.mozilla.org/show_bug.cgi?id=807426), all the tabs utils tests are missing and they will be added once the new implementation is done.