-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-2147] [BEEEP] Open login form used to unlock extension in a separate window instead of a tab #5384
[PM-2147] [BEEEP] Open login form used to unlock extension in a separate window instead of a tab #5384
Conversation
…lock a locked extension within an incongito browsing session
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
… logging a user in and attempting to autofill within the Firefox Workspaces addon
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
… within brwoserApi.ts
…tcut-does-not-prompt-to-unlock-account-in-incognito-window
…-prompt-to-unlock-account-in-incognito-window' into Client-Integrations/PM-2147-beeep-open-login-form-in-new-window
…ate window instead of a tab
…in-form-in-new-window
…ate window instead of a tab
…in-form-in-new-window
This is awesome. Thanks for working on this user experience bug. @cagonzalezcs How did you decide on opening the window in the top left? Also can you explain more of your thinking behind adding the notification and "Unlock" prompt? Is this in case the user accidentally closes the unlock window, the notification will allow the user to re-open without having to use the shortcut again/re-attempt auto-fill through the context menu? |
So the goal with moving the opening position from a new tab to the window at the top left is done to solve two issues:
I opted to open the window in the top left corner of the currently active browser because of how that mechanism works when opening any new window in a browser using a keystroke. For instance, if you press CMD + N on the MacOS version of Chrome/Firefox, a new window opens int the top left corner of the currently active window. As a result, our mechanism for opening this window for users should mimic that default action. The goal of the notification was to ensure that users had an “anchor” to reference when being required to login when triggering an autofill. This requirement came through a conversation I had with @djsmith85 regarding potential pitfalls surrounding having the login form open in a new window rather than a new tab. He felt that it was too easy for users to potentially lose the login window behind another browser window, and this notification allows the user the ability to quickly recall the login form if that does happen. Also, yes if the user closes the login window, they can open it either using this notification or another autofill keystroke. |
@cagonzalezcs Thanks for clarifying the window placement. For the save passkey in Bitwarden work, the window opens in the top right–the thinking there was to keep the window near the extension icon where users are already used to looking for it. Initially I thought it might be good to standardize the window placement but perhaps this is not as big of a deal as I originally thought since the passkey popout is not triggered by a keystroke. |
Hmm... it'd make sense to keep this consistent with other plans for the extension. Shouldn't be a huge issue to modify it to open in the top right either. I'll do that this Friday when we have some BEEEP time. |
…in-form-in-new-window # Conflicts: # apps/browser/src/browser/browserApi.ts
…in-form-in-new-window
…tarting cleanup of comments within implementation
…in-form-in-new-window
…in-form-in-new-window
…in-form-in-new-window
…in-form-in-new-window
…in-form-in-new-window
…in-form-in-new-window
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clean changes, I like it
…in-form-in-new-window
…in-form-in-new-window
Hi. Just noticed the change in my extension and could not understand some things. Maybe if I knew how to find the page for PM-2147 so feel free to direct me to it if the answers are there. First is the reason, it's not explained here. Why the change? Historically it would open the popout, then it was changed to a new tab, now to a new window. I'm fine either way, but why these changes? And the second one is that I don't see the bitwarden extension tag in firefox like shown in the video, so any extension could be showing me the popup and I wouldn't know (unless I remembered the bitwarden extension tag, and always made the effort of maximizing the window to see the address) . Should I open a bug for that? Thanks!!! |
@Camusensei Thank you for the feedback. More context on the "why" for this change can be found with this comment: #6412 (comment) For your second concern, unfortunately we do not have control over how the tag is displayed to the end user. That said, the relevant information for verifying that this window is showing a Bitwarden extension page should be easily accessible. Unfortunately Firefox truncates the extension tag that precedes the URL, however if you click on it you should see the full context of the tag. As a result, this is working as intended and does not require a bug report. If you have any further questions or concerns please feel free to open a ticket with support or an issue on this repository. |
Hello, I could not find anything in the setting so i thought i'd ask. |
Hello. I asked the same question and this was the answer:
The comment contains among other things this explanation:
|
Is there any way to revert to the old behaviour in settings somewhere I'm missing? |
Same question here, I have an issue with this in combination with pinned tabs where the newly opened window does not close after password verification. This is very bothersome as I need to close the window manually every time. It would be nice if it was configurable to use a new window or new tab. Also see my response here with reproduction steps: #6707 (comment) |
Type of change
Objective
Reimplementing the workflow for how we handle a user who is attempting an autofill when their vault is locked.
With this implementation, we are now opening the password prompt in a window that will always be focused and presented at the top left corner of the currently active browser window. Users can now enter their password in this window and the vault will unlock and autofill the password in the exact same manner as before.
Anytime a user re-attempts a autofill with a locked vault, we first check for existing windows that contain the login form and close them before re-opening the login prompt in the top left corner of the currently active window.
We now also display a notification to the user in the same UI design that is used to display the "Add/Update Cipher" notification. This notification has the ability to re-open the prompt to login to the vault.
Code changes
UnlockVault
and incorporated behavior for showing/hiding this notification when the user attempts to autofill from the extension with a locked vault. Implemented behavior to ensure that this new notification did not appear when a user was adding a new item, or editing an existing one, from a locked vault.UnlockVault
notificationUnlockVault
notification and to populate translated content within the markup used to display the notification. Also adding click listeners to the notification that re-open the prompt to unlock a user vaultUnlockVault
notification queue.LockedVaultPendingNotificationsItem
to ensure that themsg
value is indicated as an object expecting acommand
key and an optionaldata
keyUnlockVault
as a notification queue message typeScreenshots
Screen.Recording.2023-05-19.at.10.06.35.AM.mov
Example of adding/editing vault items from a locked extension
Screen.Recording.2023-06-12.at.9.55.12.AM.mov
Before you submit