bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
9.36k stars 1.26k forks source link

[PM-15065] Vault Loading on empty tabs #12059

Closed nick-livefront closed 14 hours ago

nick-livefront commented 6 days ago

🎟ī¸ Tracking

PM-15065 Slack Discussion

📔 Objective

When on a non-standard page or empty tab is focused when opening the extension, the vault was taking longer than expected to load. This was caused from a message never being received in the collectPageDetailsFromTab$ observable.

Rejecting the promise

This approach falls in line with what is happening but it is also introducing a new set of logic where tabSendMessage is called. Scanning the codebase there are places that have error handling and some that do not. If there is a more idiomatic approach, let me know!

📸 Screenshots

Chrome FireFox Safari

đŸĻŽ Reviewer guidelines

codecov[bot] commented 6 days ago

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 33.44%. Comparing base (2df8643) to head (72ec9be). Report is 41 commits behind head on main.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/browser/src/platform/browser/browser-api.ts 50.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12059 +/- ## ========================================== - Coverage 33.52% 33.44% -0.09% ========================================== Files 2859 2863 +4 Lines 89434 89659 +225 Branches 17022 17066 +44 ========================================== + Hits 29986 29988 +2 - Misses 57087 57310 +223 Partials 2361 2361 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features:

github-actions[bot] commented 6 days ago

Logo Checkmarx One – Scan Summary & Details – 43062958-dc1d-4f5f-aa05-5d2bf1052f95

No New Or Fixed Issues Found

nick-livefront commented 5 days ago

@jprusik @dani-garcia @gbubemismith I added a commit here to make rejecting on an error configurable. That way existing implementations that don't have error handling in place won't throw for uncaught errors.

72ec9be

Relevant comment from Jon in slack