eoger / tabcenter-redux

Vertical Tabs extension for Firefox
Mozilla Public License 2.0
381 stars 67 forks source link

Cache contextual identities #324

Open eoger opened 6 years ago

eoger commented 6 years ago

Every time we create a new tab, we query the contextual identity API https://github.com/eoger/tabcenter-redux/blob/a60770db1370b531e86f76cb8ef1a0e6393a357f/src/sidebar/tab.js#L31 This is wasteful, I believe we should maintain our own cache of the contextual identities using observers. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextualIdentities for reference.