Commit Graph

89 Commits

Author SHA1 Message Date
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
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01: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
Oscar Hinton a1f7e07f09
Add password show/hide to reprompt (#1902)
Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-08-27 15:27:22 +02:00
Oscar Hinton 056fdba6dd
Hide biometric setting when running in Android (#1907) 2021-07-16 10:11:21 +02:00
Danny Murphy 6cdadc6bdf Fix Deprecation Issue 2021-06-15 10:43:56 +01: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
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
Oscar Hinton e0f4386042
Add support for WebAuthn to browser extension (#1379) 2021-03-17 22:14:26 +01:00
Oscar Hinton e56e1a5c7f
Add support for browser biometrics on Firefox >= 87 (#1668) 2021-03-10 21:27:05 +01:00
Thomas Rittson c01d405eba Enable FIDO U2F on Edge 2021-03-05 10:04:29 +10:00
Thomas Rittson 962678bd4e Add extra warnings about encrypted export 2021-03-05 07:06:02 +10:00
Matt Gibson 1868b99d17
Linter updates and fixes (#1604) 2021-02-10 09:40:15 -06:00
Oscar Hinton e5764ee16e
Fix copying TOTP not working in Safari (#1598) 2021-02-04 23:34:10 +01:00
Oscar Hinton 3e79dd245b
Safari Web Extension Port from App Extension (#1531) 2021-02-03 20:36:05 +01:00
Hinton ab759a4746 Remove biometric from firefox 2021-01-25 21:25:36 +01:00
Chad Scharf 336f8f3117
Revert "Safari Web Extension Port from App Extension" 2021-01-13 17:08:33 -05:00
Hinton db59f2791a Merge branch 'master' of github.com:bitwarden/browser into feature/safari-webext
# Conflicts:
#	src/browser/safariApp.ts
#	src/safari/safari/SafariExtensionViewController.swift
#	src/services/browserPlatformUtils.service.ts
2021-01-13 14:21:45 +01:00
Chad Scharf e88b73c747
Merge pull request #1373 from sorin-davidoi/system-theme
feat: Use system theme if available
2020-12-16 10:33:33 -05:00
Hinton 7b5ec47ba5 Cleanup a few more safari things 2020-12-09 13:18:29 +01:00
Hinton 27ca7cc739 WIP Safari web extension 2020-12-07 20:00:49 +01:00
Hinton 0e2432d6f4 Review comments 2020-11-23 14:27:36 +01:00
Hinton b0c9054f23 Update with support for latest jslib 2020-10-23 10:42:58 +02:00
Hinton 894d245361 Ensure biometric unlock works even if popup is not in focus 2020-10-12 18:01:34 +02:00
Hinton 5eb0ce1e09 Fix linting errors 2020-10-11 20:45:25 +02:00
Hinton f311101ed9 Initial work of biometric unlock for browser 2020-10-09 17:16:15 +02:00
Chad Scharf dbbd07641a Remove old IE Edge hacks 2020-09-15 10:50:45 -04:00
Sorin Davidoi 260820711e feat: Use system theme if available
Depends on https://github.com/bitwarden/jslib/pull/161.

Closes https://github.com/bitwarden/browser/issues/1256.
2020-08-31 22:33:01 +02:00
Matt Smith 4b3cd22bce Merge branch 'master' into feature/sso 2020-08-19 15:08:09 -05:00
Oscar Hinton 289177259a
Upgrade TypeScript (#1355)
* Upgrade TypeScript

* Update login.component.ts

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-08-12 15:45:03 -04:00
Matt Smith 1d0b549123 Modifications made to support SSO in Browser 2020-08-11 15:25:07 -05:00
Chad Scharf 728d181fff
Merge pull request #1322 from Hinton/feature/biometric-jslib
Support biometric changes in jslib
2020-07-29 16:54:45 -04:00
Matt Smith 6c7d730d36 Missed space in formatting. 2020-07-09 14:59:47 -05:00
Hinton a5116728a9 Support biometric changes in jslib 2020-07-09 20:14:51 +02:00
Matt Smith 689f39d365 Modified Chrome to pass in null unicode on clear 2020-07-09 12:25:46 -05:00
Kyle Spearrin 7d2c4cbd9a isPopoverOpen for safari app 2019-08-20 13:54:10 -04:00
Kyle Spearrin deb5d2bf62 isViewOpen returns promise 2019-08-20 13:47:22 -04:00
Kyle Spearrin 2a7e361300 cleanup safari specific features 2019-08-19 15:57:37 -04:00
Kyle Spearrin d91c96ae65 safari app browser utils 2019-08-19 11:58:43 -04:00
Kyle Spearrin a7dabc45f1 fix safari browser test 2019-08-16 17:11:45 -04:00
Kyle Spearrin fba1731cb4 proper safari detection in utils 2019-08-13 11:57:20 -04:00
Jordan Patterson 0bfccfcb4f Support u2f on Vivaldi (#953) 2019-06-20 12:22:58 -04:00
Kyle Spearrin a60c60529f dont call clearclipboard in a loop 2019-05-30 09:37:09 -04:00
Kyle Spearrin 5b088b2b3c clear clipboard timeout implemented 2019-02-27 09:28:16 -05:00
Kyle Spearrin 91a0566f2c implement readFromClipboard 2019-02-26 22:37:21 -05:00
Kyle Spearrin 48a0b84bfe getDomain moved to jslib 2018-10-13 22:52:49 -04:00
Kyle Spearrin 755e3486ee dont need change detector 2018-10-03 09:46:00 -04:00