Commit Graph

165 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
Daniel James Smith 8fe1a6086c
Update year in copyright 2022-01-01 16:57:46 +01:00
Daniel James Smith 00bc1c4f4a
Added copyright span to the plist file I missed 2021-11-24 15:25:22 +01:00
Daniel James Smith d3002499b9
Changed copyright date to a span 2021-11-24 11:39:23 +01:00
Daniel James Smith 3be6e42849
Update copyright year in .plist files for safari 2021-10-20 18:46:56 +02: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 5bf10376a8
Change biometric prompt to use the same logic as electron (#1805)
* Change biometric prompt to use the same logic as electron
2021-04-27 20:29:47 +02:00
Oscar Hinton cb3286cc87
Use correct development_team (#1800) 2021-04-23 23:41:06 +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 2ac9f92267
Resolve safari not checking vault timeout every 10s (#1615) 2021-02-20 11:10:33 +01:00
Oscar Hinton d589087a2c
Set save dialog to be a floatingPanel (#1601) 2021-02-08 17:53:23 +01: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
Chad Scharf 336f8f3117
Revert "Safari Web Extension Port from App Extension" 2021-01-13 17:08:33 -05:00
Hinton 5a07f6468a Fix plist versions 2021-01-13 21:27:59 +01:00
Hinton f6ae483b65 Change SFSafariAppExtensionBundleIdentifiersToReplace to be an array 2021-01-13 15:48:39 +01:00
Hinton 303439533c Fix xcode proj settings 2020-12-14 20:27:23 +01:00
Hinton 36bda45c2e Add SFSafariAppExtensionBundleIdentifiersToReplace 2020-12-14 10:20:41 +01:00
Hinton 27ca7cc739 WIP Safari web extension 2020-12-07 20:00:49 +01:00
Kyle Spearrin 6fd3189d14 BUILD_NUMBER for safari extension 2020-09-28 13:22:07 -04:00
Chad Scharf c4e66ce587 Potential fix for pinned tab auto-fill in Safari 2020-09-21 12:53:51 -04:00
Kyle Spearrin ad4d67cc49 support vendor angular script for safari build 2020-09-16 14:43:02 -04:00
Matt Smith 4b3cd22bce Merge branch 'master' into feature/sso 2020-08-19 15:08:09 -05:00
Matt Smith 1d0b549123 Modifications made to support SSO in Browser 2020-08-11 15:25:07 -05:00
Chad Scharf bfd848ba26 Added logging and completion handler for JS 2020-08-03 11:15:26 -04:00
Chad Scharf 8f032fd03d Fix completion handler nil crashes SFSafariWindow 2020-07-22 18:12:08 -04:00
Chad Scharf 2481852170
cleanup swift type unwrapping (#1300) 2020-06-19 09:12:22 -04:00
Chad Scharf 6747fec964 Removed verbose debug logging 2020-05-22 09:54:28 -04:00
Chad Scharf b80cc3bbfa Ridiculously verbose debug build 2020-05-21 16:21:23 -04:00
Chad Scharf e12cce711c Potential fix for swift nil unwrap exception 2020-05-20 10:01:58 -04:00
Chad Scharf 95846277bb Reapply removal of dead code 2020-05-14 17:34:43 -04:00
Chad Scharf d5ab36e577 try revert getAppPath 2020-05-14 14:44:11 -04:00
Chad Scharf bf141ab20c Attempt fix for safair app extension crash 2020-05-13 19:00:49 -04:00
Kyle Spearrin 11ee00c134 remove titlements that wernt helping 2020-05-07 12:30:23 -04:00
Kyle Spearrin f636e3a957 try adding check-by-audit-token entitlement 2020-04-21 08:46:22 -04:00
Kyle Spearrin b8b3c01d68 test apple-events entitlement 2020-04-08 10:44:08 -04:00
Kyle Spearrin 23acc1bfb3 bitwarden inc. 2020-02-18 22:35:28 -05:00
Kyle Spearrin b9103f23ce conditional code for macos 10.12+ 2019-10-17 09:04:10 -04:00
Kyle Spearrin 1345980392 target 10.11 2019-10-17 08:31:23 -04:00
Kyle Spearrin 60f6863e4f a11y work 2019-10-08 17:04:44 -04:00
Kyle Spearrin ab1a38ee4a embed swift libraries 2019-09-22 19:22:46 -04:00
Kyle Spearrin e62253142b fix show popover command to resolve now 2019-09-21 09:50:57 -04:00
Kyle Spearrin 865b55d665 change build target for safari extension to 10.13 2019-09-20 23:10:02 -04:00
Kyle Spearrin 83f7e0bb28 update info.plist 2019-09-09 12:15:35 -04:00
Kyle Spearrin b841805c1b format swift 2019-09-09 10:13:36 -04:00
Kyle Spearrin 5b72888ae8 swift formatting 2019-09-09 10:11:59 -04:00
Kyle Spearrin b912470e69 get proper tab index on makeSenderTabObject 2019-09-04 11:55:57 -04:00
Kyle Spearrin 73e471dd60 remove entitlements for hardened runtime 2019-08-23 17:17:45 -04:00
Kyle Spearrin 4d6be3d248 hardened runtime entitlements 2019-08-23 12:30:30 -04:00
Kyle Spearrin cedca132f6 remove old downloader page/script 2019-08-23 09:58:48 -04:00