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-12352] Incorporate the minimum amount of changes to ensure OverlayBackground instantiates on init of the extension #11134

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

cagonzalezcs
Copy link
Contributor

@cagonzalezcs cagonzalezcs commented Sep 18, 2024

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

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

…kground instantiates on init of the extension
@cagonzalezcs cagonzalezcs requested a review from a team as a code owner September 18, 2024 19:08
Copy link

codecov bot commented Sep 18, 2024

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).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/browser/src/background/main.background.ts 0.00% 7 Missing ⚠️
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     

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

Copy link
Contributor

github-actions bot commented Sep 18, 2024

Logo
Checkmarx One – Scan Summary & Details2a469404-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

jprusik
jprusik previously approved these changes Sep 23, 2024
@cagonzalezcs cagonzalezcs marked this pull request as draft September 24, 2024 13:54
@cagonzalezcs
Copy link
Contributor Author

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

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.

2 participants