Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nick-livefront
Copy link
Collaborator

@nick-livefront nick-livefront commented Nov 19, 2024

🎟️ 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.

  • The underlying sendMessage fails in Chrome and Firefox. That error was ignored in the tabSendMessage, I now rejected the promise to surface the error.
  • Safari does not throw an error but a new tab does not have a url, I added a check for that as there wouldn't be autofill information (to my knowledge)

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
chrome-after.mov
firefox-after.mov
safari-after.mov

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

- Removes the need for a timeout when fetching page details
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 33.52%. Comparing base (2df8643) to head (963000f).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/browser/src/platform/browser/browser-api.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12059      +/-   ##
==========================================
- Coverage   33.52%   33.52%   -0.01%     
==========================================
  Files        2859     2859              
  Lines       89434    89438       +4     
  Branches    17022    17023       +1     
==========================================
- Hits        29986    29983       -3     
- Misses      57087    57094       +7     
  Partials     2361     2361              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Contributor

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

No New Or Fixed Issues Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant