[PM-12352] Incorporate the minimum amount of changes to ensure OverlayBackground instantiates on init of the extension
đī¸ 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
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.
Checkmarx One â Scan Summary & Details â 2a469404-c788-454d-8573-493dd621b005
Fixed Issues
| Severity | Issue | Source File / Package |
|---|---|---|
![]() |
Client_JQuery_Deprecated_Symbols | /apps/cli/src/service-container/service-container.ts: 876 |
Converting this to a draft to ensure we don't accidentally merge the work in.
