Commit Graph

64 Commits

Author SHA1 Message Date
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01: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
Thomas Rittson 7d43835ea2
Update client for authService refactor (#2302) 2022-02-08 09:06:37 +10: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
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Oscar Hinton 3eb860f464
BEEEP: Refactor services DI (#2201) 2021-12-06 12:21:07 +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 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 bbbf152c62
Fix performance on MacOS, Chrome & external screen (#2104)
* Fix performance on MacOS, Chrome & external screen

* Undo dev logging, tidy up
2021-11-02 08:15:49 +10:00
Thomas Rittson cffd4b3515
Fix Copy Custom Field Name on pages with iframes (#2091)
* Improve error messages

* Send getClickedElement msg to specific frameId

* Add support for finding input element from label

* Use i18n for error messages

* Fix unrelated linting
2021-10-07 09:52:33 +10: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 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
Thomas Rittson 9d720d6058 Fix loss of cipher data when using pass generator 2021-07-06 19:23:49 +10:00
Thomas Rittson 13f29ac8d6 Don't start i18n service if in private mode 2021-06-29 16:59:14 +10:00
Thomas Rittson f4d792aa9d Merge branch 'master' into use-lock-guard 2021-06-09 07:39:45 +10:00
Thomas Rittson 08e9dca7e4 Don't start popup services if in private mode 2021-06-08 15:31:54 +10:00
Thomas Rittson 6230302106 Finish refactoring route guards to use jslib 2021-06-08 10:04:59 +10:00
Thomas Rittson 2a810a1cca Merge branch 'master' into use-lock-guard 2021-06-08 08:58:30 +10: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 1e998094df Use lockGuardService to prevent back navigation 2021-06-07 08:59:02 +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
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
Thomas Rittson 626145e492 Revert "Merge pull request #1627 from emindeniz99/master"
This reverts commit 9063a98949, reversing
changes made to 540ca5d204.
2021-03-18 09:38:27 +10:00
Oscar Hinton e0f4386042
Add support for WebAuthn to browser extension (#1379) 2021-03-17 22:14:26 +01:00
Chad Scharf 23a56d5da2
Merge pull request #1630 from vrnvorona/add-disable-badge-counter
Option to disable badge text on icon
2021-03-12 15:23:56 -05:00
Chad Scharf 9063a98949
Merge pull request #1627 from emindeniz99/master
fix popup height
2021-03-12 15:16:41 -05:00
Vincent Salucci 61d7fcfc85
Fixed lint warnings (#1655) 2021-03-02 12:31:52 -06:00
Emin Deniz 1cb77f847e fix popup height 2021-02-22 03:01:31 +03:00
Vlad eb59c9e692 browser version of 287 issue
added condition when badge should set text based on setting
2021-02-22 01:35:14 +03: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
Matt Gibson e23d96a350
Add ConsoleLogService dependency from jslib (#1488)
* Pre-emptively add new jslib dependency

* Add ConsoleLogService dependency

* Update jslib

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-14 11:56:40 -06:00
Kyle Spearrin 63eb0959a7
support for sr lang. resolve sendService deps (#1466) 2020-11-18 16:54:29 -05:00
Kyle Spearrin b91b5b5be0 dont set setCryptoKeys to null 2020-09-15 16:27:28 -04:00
Chad Scharf dbbd07641a Remove old IE Edge hacks 2020-09-15 10:50:45 -04:00
Kyle Spearrin cc59905cc2
Update services.module.ts 2020-09-03 11:24:13 -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
Kyle Spearrin b795f0e587
Fix CryptoFunctionService and implement syncLoading (#1371)
* Fix things and implement syncLoading

* feedback
2020-08-31 14:21:59 -04:00
Matt Smith fad4f9ef5e Removed duplicate Crypto Function Service. 2020-08-28 13:40:21 -05:00
Matt Smith 91ce6527c0 Added set password flow to browser based SSO 2020-08-25 09:49:24 -05:00
Matt Smith 4b3cd22bce Merge branch 'master' into feature/sso 2020-08-19 15:08:09 -05:00
Kyle Spearrin b0868ea9c4 di resolution for CryptoFunctionServiceAbstraction 2020-08-19 10:03:19 -04:00
Matt Smith 1d0b549123 Modifications made to support SSO in Browser 2020-08-11 15:25:07 -05:00
Hinton a5116728a9 Support biometric changes in jslib 2020-07-09 20:14:51 +02:00
Vincent Salucci e510738a03
[Auto-Logout] Implement Vault Timeout Options (#1194)
* Update jslib 31a2574 -> 28e3fff

* Initial commit for vault timeout

* Updated timeout/action retrieval in idle.background

* Cycle saved for idle check

* Await async calls for lock/logout in idle bg

* Updated lock vs log out conditional

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-04-06 10:40:16 -05:00
Kyle Spearrin 97a38b000b make policy service injectable to popup 2020-01-28 22:44:10 -05:00
Kyle Spearrin edaf35441c register event service with popup services 2019-07-14 11:58:17 -04:00