1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-14 10:26:19 +01:00
Commit Graph

223 Commits

Author SHA1 Message Date
Oscar Hinton
c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Thomas Rittson
b0dbb6f2f9
Update jslib (#2407)
* Update jslib

* Add error message string for session timeout

* Update deps
2022-02-24 09:33:58 -05:00
Thomas Rittson
06ba30fc6b
[BEEEP] Firefox Private Mode (#2294)
* Create background in popup if private mode, remove gates

* Add messaging support to runtime in private mode

* Fix messaging services and general bootstrap logic

* Add private mode warning, remove old component

* Deprecate launchGuardService

* Require in memory account for user to be considered authenticated

* Don't change icon for private mode windows

* Set all icons from background page
2022-02-16 08:06:35 +10:00
Matt Gibson
45ed645cea
Skip unlocking unless locked, not only biometric locked (#2350) 2022-02-11 03:44:35 -06:00
Daniel James Smith
95d92908f6
Fixing some regression issues (#2325)
* Pull jslib

* Extend vaultTimeoutServiceCallbacks to use userId

* Remove redundant call to tokenService.clear
2022-02-09 23:56:14 +01:00
addison
55850e6cc6 [bug] Dont block redirecting on logout 2022-02-08 09:49:44 -05:00
Thomas Rittson
7d43835ea2
Update client for authService refactor (#2302) 2022-02-08 09:06:37 +10:00
addison
9cea47aaf1 [bug] Clean state service on logout 2022-02-07 15:09:43 -05:00
addison
901b88b21f Update jslib 2022-02-03 13:55:06 -05:00
addison
c4844b9943 [style] Ran prettier 2022-01-31 14:48:52 -05:00
addison
4f9a741278 [style] Lint fixes 2022-01-31 14:46:04 -05:00
addison
f6e274a9a0 [chore] Update jslib 2022-01-31 14:21:06 -05:00
Daniel James Smith
bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Daniel James Smith
aa8fe04a28
[UX] Change menu items for unauthed and locked vault (#2285)
* Change menu items for unauthed and locked vault

* Use 'Log in' instead of 'Login'
2022-01-25 08:17:01 +01:00
Oscar Hinton
8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Daniel James Smith
ec502c06a5
Merge pull request #2180 from bitwarden/fix/save-when-locked
Don't save passwords if user is logged out
2021-11-17 20:33:02 +01:00
Thomas Rittson
f85a6958bc
Update jslib and service dependencies (#2179)
* Update service deps

* Fix linting

* Update jslib
2021-11-16 20:50:58 +10:00
Thomas Rittson
7b3f8d4223 Don't save passwords if user is logged out 2021-11-16 14:14:48 +10:00
Thomas Rittson
cf28435ce3
[Key Connector] Add support for key connector and OTP (#2156)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-11-09 18:59:51 +01:00
Thomas Rittson
2113c709a4
[Linked fields] Add Linked Field as a custom field type (#1963)
* Proof of concept for Linked custom field type

* Linked Fields for all cipher types, use dropdown

* Fix linked icon alignment

* Tweak linked icon alignment and style

* Move add-edit custom fields to own component

* Disable copy for linked field

* Use Field.LinkedId to store linked field info
2021-11-04 07:40:42 +10:00
Oscar Hinton
ce2e6c3cb4
Remove empty catch blocks and remove allow-empty-catch tslint rule (#2136) 2021-10-21 11:10:46 +02:00
Daniel James Smith
fd8de4ca0c
Use messages/events instead of main.unlockCompleted 2021-10-18 16:41:42 +02:00
Daniel James Smith
4b49b1fcc0
Add type CipherView for AutoFill functionality 2021-10-18 16:10:13 +02:00
Daniel James Smith
f951c860ea
Shorten variable name 2021-10-15 15:35:31 +02:00
Daniel James Smith
ca0fe76172
Move routing of actions after unlock into main.background
As we are unable to send a message from one background script to another, I moved the routing of the retryAction into main.background and call processMessages on the notificationBackground in unlockCompleted
2021-10-15 15:28:10 +02:00
Daniel James Smith
7388cd174e
Move notificationQueue from main into notification.background 2021-10-15 15:09:13 +02:00
Daniel James Smith
0eb7fe1407
Extract logic for notificationBar into new NotificationBackground class 2021-10-15 15:03:25 +02:00
Daniel James Smith
40ba8a5cde
Removed devepency on popupUtilsService as not needed for login via Tab 2021-10-14 19:05:02 +02:00
Daniel James Smith
75c8c4205f
Move retryQueue from main to runtime and rename it to lockedVaultPendingNotifications 2021-10-08 13:23:05 +02:00
Daniel James Smith
2613a8cfea
Merge branch 'master' of https://github.com/bitwarden/browser into add-login-with-locked-vault 2021-10-08 12:45:35 +02:00
Thomas Rittson
6dfb06c5b0
Use theme enum and platformUtilsService helpers (#2089)
* Use theme enum and platformUtilsService helpers

* Update jslib
2021-10-05 06:30:31 +10:00
Daniel James Smith
838bfe9454
Wait for user to log in before trying to save credentials 2021-09-30 16:43:10 +02:00
Daniel James Smith
5c175e2201
Open login prompt as popout when vault is locked 2021-09-30 16:33:33 +02:00
Daniel James Smith
686c7fbfff
Pass vault state (locked/unlocked) to notificationBar 2021-09-30 16:09:42 +02:00
Daniel James Smith
889bbf8e2f
Removed checks for locked vault from collectPageDetails 2021-09-30 15:47:33 +02:00
Oscar Hinton
a848406ce0
Use explicit import paths (#2074) 2021-09-17 15:44:27 +02:00
Oscar Hinton
2e6f0f4166
Vault Timeout Policy (#2048) 2021-09-14 13:36:34 +02:00
Dmitry Chepurovskiy
cd2f174923
Select folder at save bar (#1409)
* Markup changes

* Render in notification bar folders list that is provided form TS code

* Implemented getting of folders list

* Refactor addPlatformEventListener and added default selection of "No Folder"

* Pass folder id info to saveAddLogin

* Modify saveAddLogin to use folder id

* Try to fix default folder selection

* Fix styling issues found during review

* Fix review issues found by kspearrin

* Fix default selection and null handling

* Fix import order

* Applied review suggestions

* Implement checking if folderExist during saving

* Fix compile issues

* Added select folder... option

* Add internalization for select folder message

* Hide select folder element on narrow screens

* Fix lint issues

* Review fixes in notification bar

* Adjust semi-responsive layout for folder selector

* Revert style change

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-09-03 11:54:52 +10:00
Thomas Rittson
0bd22dcddc
Add new context menu item: Copy Custom Field Name (#2045)
* Add "Copy custom field name" context menu item

* Title case context menu string

* Improve Copy Custom Field Name logic

* Move CopyClickedElement to runtime.background

* Update dependencies

* Add comments, refactor logic, add failure messages

* Fix typo and linting

* Fix typos

* Move null check inside function
2021-09-02 07:51:43 +10:00
Oscar Hinton
7cf4cfe3d1
Add support for helpers in environment service (#1967) 2021-07-23 22:32:42 +02:00
Matt Gibson
55917b6cb0
Feature/use hcaptcha if bot (#1968)
* Add captcha to login page

* Include log service in DI providers for api-action directive

* Add captcha to register page

* update jslib
2021-07-23 13:22:53 -05:00
Matt Gibson
f35f3550a7
Get either 'Bitwarden' and 'Bitwarden_biometric' keys. (#1904)
* Get either 'Bitwarden' and 'Bitwarden_biometric' keys.

* Fix let var typo

* Fix string handling error

* Retrieve biometric key from Desktop

* Null check key
2021-06-22 15:11:29 -05:00
Oscar Hinton
4e1958f417
Add jslib as a "real" dependency (#1876)
* Support split jslib

* Fix tests

* Bump jslib
2021-06-07 19:25:37 +02:00
Thomas Rittson
0c9ec9e635 update service deps 2021-05-13 10:51:07 +10:00
Oscar Hinton
cdc71dd661
Password reprompt (#1784)
* Add support for password reprompt

* Rename passwordPrompt to reprompt.

* Move showPasswordDialog to paltformutils

* Fix swal2 validation error styling

* Group imports

* Update src/_locales/en/messages.json

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-05-03 20:56:38 +02:00
Oscar Hinton
44463e7bc0
Remove dead code (#1787)
* Remove dead analytics code
2021-04-14 23:43:09 +02:00
Oscar Hinton
97ac4a3267
Bump jslib (#1776) 2021-04-07 20:43:07 +02:00
Oscar Hinton
ae4c1b29d2
Add support for biometrics to Safari (#1775)
* Add Biometrics support to Safari
2021-04-07 17:39:59 +02:00
Matt Gibson
b69bbd3501
Use azure direct upload for send and attachments (#1744)
* Use azure direct upload for send and attachments

* Add required attachment changes

* update jslib
2021-03-29 10:16:31 -05:00
Oscar Hinton
e0f4386042
Add support for WebAuthn to browser extension (#1379) 2021-03-17 22:14:26 +01:00