clients icon indicating copy to clipboard operation
clients copied to clipboard

[PM-12352] Incorporate the minimum amount of changes to ensure OverlayBackground instantiates on init of the extension

Open cagonzalezcs opened this issue 1 year ago â€ĸ 3 comments

đŸŽŸī¸ Tracking

https://bitwarden.atlassian.net/browse/PM-12352

📔 Objective

A number of issues are being reported in relation to autofill behavior for the extension. These include the following:

  • https://github.com/bitwarden/clients/issues/11080
  • https://github.com/bitwarden/clients/issues/10814
  • https://github.com/bitwarden/clients/issues/10815

Replicate of the behavior described in these tickets is difficult to do, but more than likely the core issue revolves around how we are handling initialization of the OverlayBackground and TabsBackground classes within the MainBackground class of the extension.

These two problematic classes are being instantiated behind a feature flag, which depends on config data from the server. The behavior described by end users points to some issue with triggering the behavior in those classes.

To resolve this, we need to pull the instantiation of those classes into the constructor of the MainBackground class, as was originally done. This will remove the potential of initializing the LegacyOverlayBackground entirely, but incorporating this fix represents the most logical course of action to resolve these issues that users are experiencing.

We will be petitioning the community to verify that this fixes their issues through a side-loaded artifact. If this indicates a resolution for the majority of users, we will begin discussions on incorporating these set of changes as a hotfix for the extension.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

đŸĻŽ 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

cagonzalezcs avatar Sep 18 '24 19:09 cagonzalezcs

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 33.54%. Comparing base (a4c6731) to head (6347a18).

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

Files with missing lines Patch % Lines
apps/browser/src/background/main.background.ts 0.00% 7 Missing :warning:
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11134   +/-   ##
=======================================
  Coverage   33.53%   33.54%           
=======================================
  Files        2814     2814           
  Lines       87474    87457   -17     
  Branches    16676    16670    -6     
=======================================
+ Hits        29332    29334    +2     
+ Misses      55835    55818   -17     
+ Partials     2307     2305    -2     

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

codecov[bot] avatar Sep 18 '24 19:09 codecov[bot]

Logo Checkmarx One – Scan Summary & Details – 2a469404-c788-454d-8573-493dd621b005

Fixed Issues

Severity Issue Source File / Package
LOW Client_JQuery_Deprecated_Symbols /apps/cli/src/service-container/service-container.ts: 876

github-actions[bot] avatar Sep 18 '24 19:09 github-actions[bot]

Converting this to a draft to ensure we don't accidentally merge the work in.

cagonzalezcs avatar Sep 24 '24 13:09 cagonzalezcs