1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-08 00:01:28 +01:00
Commit Graph

938 Commits

Author SHA1 Message Date
Cesar Gonzalez
9cf82edc6f
[PM-5189] Refactoring implementation 2024-04-16 09:35:57 -05:00
Cesar Gonzalez
3bb6bfb753
[PM-5189] Refactoring implementation 2024-04-16 09:33:11 -05:00
Cesar Gonzalez
ac553bccc8
[PM-5189] Refactoring implementation 2024-04-16 09:27:55 -05:00
Cesar Gonzalez
35af5b8bad
[PM-5189] Refactoring implementation and fixing issues with typing data 2024-04-16 08:19:17 -05:00
Cesar Gonzalez
87152cedbd
Merge branch 'main' into autofill/pm-5189-fix-issues-present-with-inline-menu-rendering-in-iframes 2024-04-15 16:26:47 -05:00
github-actions[bot]
0765240886
Autosync the updated translations (#8740)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-04-15 17:56:11 +00:00
Jake Fink
576431d29e
[PM-5499] auth request service migrations (#8597)
* move auth request storage to service

* create migrations for auth requests

* fix tests

* fix browser

* fix login strategy

* update migration

* use correct test descriptions in migration
2024-04-15 12:34:30 -04:00
github-actions[bot]
6f31f42755
Autosync the updated translations (#8716)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-04-12 19:52:02 +00:00
Thomas Rittson
d026087bfd
[AC-2443] Update unassigned items banner text for self-hosted (#8719)
* Update banner text for self-hosted environments

* Fix tests

* Fix web vault wording

* Actually fix web vault wording
2024-04-12 06:57:17 -05:00
Matt Gibson
8d698d9d84
[PM-7169][PM-5267] Remove auth status from account info (#8539)
* remove active account unlocked from state service

* Remove status from account service `AccountInfo`

* Fixup lingering usages of status

Fixup missed factories

* Fixup account info usage

* fixup CLI build

* Fixup current account type

* Add helper for all auth statuses to auth service

* Fix tests

* Uncomment mistakenly commented code

* Rework logged out account exclusion tests

* Correct test description

* Avoid getters returning observables

* fixup type
2024-04-12 09:25:45 +02:00
SmithThe4th
c2b91d2d46
[PM-4700] Fixed issue with clearing search index state (#8686)
* fixed issue with clearing search index state

* Decrease snap description character length to reach 128 limit (#8687)

* clear user index before account is totally cleaned up

* [AC-2436] Fix flashing unassigned items banner (#8689)

* Fix flashing banner for users who shouldn't see it

* Emit the right value the first time

* simplify further

* restore comment

* added logout clear on option

* removed redundant clear index from logout

---------

Co-authored-by: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-04-11 17:53:16 +01:00
Cesar Gonzalez
9a9a973ef0
[PM-5189] Extracting the getAttributeBoolean method to a separate util method 2024-04-11 09:53:04 -05:00
Cesar Gonzalez
03da6d8ef2
[PM-5189] Implementing a fix for how hidden fields populate the inline menu 2024-04-11 09:41:36 -05:00
Cesar Gonzalez
f702d1f08a
Merge branch 'main' into autofill/pm-5189-fix-issues-present-with-inline-menu-rendering-in-iframes 2024-04-11 08:24:15 -05:00
Justin Baur
16c289d680
Prefer Passed In UserId (#8602) 2024-04-10 17:55:20 -05:00
Cesar Gonzalez
e4720de62a
[PM-7353] Autofill item selection not working from within current tab view in vault (#8670)
* [PM-7353] Fix autofill not working from current tab component

* [PM-7353] Fix autofill not working from current tab component

* [PM-7353] Fix autofill not working from current tab component
2024-04-10 22:06:34 +00:00
Bitwarden DevOps
4607ae73c0
Bumped browser,desktop version to (#8684) 2024-04-10 21:45:31 +00:00
Thomas Rittson
98ed744ae8
[AC-2436] Show unassigned items banner in browser (#8656)
* Boostrap basic banner, show for all admins

* Remove UI banner, fix method calls

* Invert showBanner -> hideBanner

* Add api call

* Minor tweaks and wording

* Change to active user state

* Add tests

* Fix mixed up names

* Simplify logic

* Add feature flag

* Do not clear on logout

* Show banner in browser as well

* Update apps/browser/src/_locales/en/messages.json

* Update copy

---------

Co-authored-by: Addison Beck <github@addisonbeck.com>
Co-authored-by: Addison Beck <hello@addisonbeck.com>
2024-04-10 12:13:37 -07:00
rr-bw
4a3cd24510
instantiate service (#8671) 2024-04-10 10:30:09 -07:00
Cesar Gonzalez
1e7329d1ef
[PM-7370] Remove usage of BrowserMessagingPrivateModeBackgroundService and MultithreadEncryptService from manifest v3 (#8654) 2024-04-10 16:23:02 +00:00
Cesar Gonzalez
05f22b9cbc
[PM-7388] Fix AutofillService dependency reference to TotpService within poppup services module (#8668) 2024-04-10 10:35:17 -05:00
SmithThe4th
2bce6c538c
[PM-6194] Refactor injection of services in browser services module (#8380)
* refactored injector of services on the browser service module

* refactored the search and popup serach service to use state provider

* renamed back to default

* removed token service that was readded during merge conflict

* Updated search service construction on the cli

* updated to use user key definition

* Reafctored all components that refernce issearchable

* removed commented variable

* added uncommited code to remove dependencies not needed anymore

* added uncommited code to remove dependencies not needed anymore
2024-04-10 14:02:46 +01:00
Matt Gibson
560033cb88
Remove usages of chrome.storage (#8664)
* Enable clearing and retrieving all values from local storage

I didn't add these methods to the base abstract class because we don't currently have a use case for them. If we develop one, we can just lift it up.

* Use new browser local storage methods for reseed task

* Remove the now dangerous methods enabling usage of `chrome.storage`

Any direct reference to chrome storage needs to handle serialization tags, which is best dealt with through the classes implementing `AbstractChromeStorageService`
2024-04-10 08:01:34 -05:00
Jake Fink
9d10825dbd
[PM-5362] Add MP Service (attempt #2) (#8619)
* create mp and kdf service

* update mp service interface to not rely on active user

* rename observable methods

* update crypto service with new MP service

* add master password service to login strategies
- make fake service for easier testing
- fix crypto service tests

* update auth service and finish strategies

* auth request refactors

* more service refactors and constructor updates

* setMasterKey refactors

* remove master key methods from crypto service

* remove master key and hash from state service

* missed fixes

* create migrations and fix references

* fix master key imports

* default force set password reason to none

* add password reset reason observable factory to service

* remove kdf changes and migrate only disk data

* update migration number

* fix sync service deps

* use disk for force set password state

* fix desktop migration

* fix sso test

* fix tests

* fix more tests

* fix even more tests

* fix even more tests

* fix cli

* remove kdf service abstraction

* add missing deps for browser

* fix merge conflicts

* clear reset password reason on lock or logout

* fix tests

* fix other tests

* add jsdocs to abstraction

* use state provider in crypto service

* inverse master password service factory

* add clearOn to master password service

* add parameter validation to master password service

* add component level userId

* add missed userId

* migrate key hash

* fix login strategy service

* delete crypto master key from account

* migrate master key encrypted user key

* rename key hash to master key hash

* use mp service for getMasterKeyEncryptedUserKey

* fix tests

* fix user key decryption logic

* add clear methods to mp service

* fix circular dep and encryption issue

* fix test

* remove extra account service call

* use EncString in state provider

* fix tests

* return to using encrypted string for serialization
2024-04-09 20:50:20 -04:00
Cesar Gonzalez
747a74c954
[PM-5189] Implementing a really rough sketch of the message-connector rework based on requirements for Firefox 2024-04-09 16:35:58 -05:00
github-actions[bot]
aefea43fff
Autosync the updated translations (#8646)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-04-09 09:29:09 +00:00
Cesar Gonzalez
27483cf486
[PM-5189] Adjusting AutofillOverlayIframeService jest tests 2024-04-08 16:06:38 -05:00
Cesar Gonzalez
3f710c5e82
[PM-5189] Adjusting AutofillOverlayPageElement jest tests 2024-04-08 15:51:03 -05:00
Cesar Gonzalez
171006cc35
[PM-5189] Adjusting AutofillInit jest tests 2024-04-08 15:32:27 -05:00
Cesar Gonzalez
f1e90edb9e
[PM-5189] Fixing jest tests within AutofillInit 2024-04-08 15:13:46 -05:00
Cesar Gonzalez
a93ec6610e
[PM-5189] Fixing jest tests within AutofillOverlayButton 2024-04-08 14:56:59 -05:00
Cesar Gonzalez
5731347925
[PM-5189] Fixing jest tests within AutofillOverlayList 2024-04-08 14:49:34 -05:00
Cesar Gonzalez
43181fd794
[PM-5189] Fixing jest tests within AutofillOverlayContentService 2024-04-08 13:25:55 -05:00
Cesar Gonzalez
35ebcc3fd7
[PM-5189] Fixing jest tests within AutofillService 2024-04-08 11:21:37 -05:00
Cesar Gonzalez
ea6e72da92
Merge branch 'main' into autofill/pm-5189-fix-issues-present-with-inline-menu-rendering-in-iframes 2024-04-08 11:06:55 -05:00
Cesar Gonzalez
6d1334b077
[PM-5189] Fixing jest tests within AutofillOverlayPageElement 2024-04-08 11:04:16 -05:00
Oscar Hinton
7064b595da
[SM-1031] Remove SecretsManager & showDDG compile flags (#8610)
Remove old compile flags which should no longer be required, and may even cause issues. secretsManager: false hides the app switcher which is now used for more than just secrets manager.
2024-04-08 17:46:24 +02:00
Matt Gibson
d1a0a20daa
[PM-7341] Force serialization of data in chrome storage api (#8621)
* Force serialization of data in chrome storage api

* Test chrome api storage serialization

* Update apps/browser/src/platform/services/abstractions/abstract-chrome-storage-api.service.ts

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

---------

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
2024-04-08 17:41:45 +02:00
Cesar Gonzalez
4591d6ef9b
[PM-5189] Starting to correct all jest tests 2024-04-08 10:41:25 -05:00
Tom
3d052242df
[PM-5578] [PM-5579] [PM-5580] [PM-5581] Send Browser State Provider (#8232)
* Replacing state service with state provider

* Documentation indicating the differences between the 2 states used.

* Creating key definition, updating comments, and modifying test cases

* Adding the key definitions tests

* Documenting the observables

* Fixing the test issue with the awaitAsync import

* Removing browser state service stuff for merge fix

* no need to redefine interface members

* Renaming to DefaultBrowserStateService
2024-04-08 10:30:39 -04:00
Cesar Gonzalez
3c51481f80
Merge branch 'main' into autofill/pm-5189-fix-issues-present-with-inline-menu-rendering-in-iframes 2024-04-08 08:55:05 -05:00
Cesar Gonzalez
5da58401d7
[PM-5189] Refactoring and organizing implementation 2024-04-08 07:43:35 -05:00
Cesar Gonzalez
dd6f3d46cb
[PM-5189] Implementing a verification process to ensure we are receiving valid inline menu messages within the background script 2024-04-08 07:02:33 -05:00
Oscar Hinton
759e48728e
Remove unused broadcaster service reference (#8420) 2024-04-08 13:18:39 +02:00
Cesar Gonzalez
a69d9d8f4a
[PM-5189] Refactoring and organizing implementation 2024-04-08 05:47:33 -05:00
Cesar Gonzalez
bed24d17a9
Merge branch 'main' into autofill/pm-5189-fix-issues-present-with-inline-menu-rendering-in-iframes 2024-04-08 05:29:37 -05:00
Cesar Gonzalez
4c165617f0
[PM-5189] Fixing issue where unlocking account can focus the wrong field 2024-04-08 05:28:27 -05:00
Cesar Gonzalez
4914636800
[PM-5189] Refactoring and organizing implementation 2024-04-08 04:52:38 -05:00
Cesar Gonzalez
45d381cd1a
[PM-5189] Fixing issues identified with updating the isCurrentlyFilling value within the overlay background 2024-04-08 04:32:41 -05:00
github-actions[bot]
4069371b85
Autosync the updated translations (#8624)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-04-08 06:05:41 +00:00