Closed Bug 1419560 Opened 2 years ago Closed 2 years ago
Expose a Contextual
Identity property on tabs .Tab
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5 Steps to reproduce: 1. Install 1Password and the Multi-Account Containers extensions: https://agilebits.com/onepassword/extensions/firefox and https://github.com/mozilla/multi-account-containers 2. Open a new Container tab 3. Set 1Password to Open URLs in New Tab. In 1Password for Mac, click the 1Password button in Firefox, then the Gear button at the top right of the popup. Choose the appropriate option from the "Open URLs in" submenu. 3. Click the open and fill button next to the website in a Login in the 1Password application Actual results: 1Password is only able to open a tab in the default Container. Expected results: 1Password should be able to query the current tab's ContextualIdentity and preserve this for the user. Right now, it seems this property is not exposed on tabs.Tab. There is also precedent for this kind of querying in the Incognito/private browsing mode. Both Jetpack and WebExtensions have allowed querying whether the current window is private, which allows 1Password to preserve the user's private browsing state as they open new Logins. The same should be possible with contextualIdentities.ContextualIdentity
Component: Untriaged → WebExtensions: Frontend
Product: Firefox → Toolkit
Actually tabs.Tab.cookieStoreId can be used to look up the tab's contextual identity.
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Awesome! Thanks for that! I’ll be giving this a try.
You need to log in before you can comment on or make changes to this bug.