Conversation
… flag to AccountSwitcherService to accommodate server-side feature flag.
…ice dependency for feature flag.
…itching flags from browser.
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18339 +/- ##
==========================================
- Coverage 42.58% 42.50% -0.08%
==========================================
Files 3627 3635 +8
Lines 105188 105554 +366
Branches 15877 15943 +66
==========================================
+ Hits 44791 44868 +77
- Misses 58507 58795 +288
- Partials 1890 1891 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and the feature flag configuration used by ✅ Fortunately, these BIT tests have passed! 🎉 |
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and all feature flags disabled. ✅ Fortunately, these BIT tests have passed! 🎉 |
coroiu
left a comment
There was a problem hiding this comment.
Platform changes are good 👍
Patrick-Pimentel-Bitwarden
left a comment
There was a problem hiding this comment.
👍 Good work Dave! Changes look good.
…performance issues on safari (#18339) * refactor(account-switching) [PM-5594]: Move account switching enabled flag to AccountSwitcherService to accommodate server-side feature flag. * test(account-switching) [PM-5594]: Update tests to include ConfigService dependency for feature flag. * refactor(account-switching) [PM-5594]: Remove compile-time account switching flags from browser. * refactor(account-switching) [PM-5594]: Move initialization to ctor for strict.
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339
This enables the use of the Feature from this PR bitwarden/clients#18339

🎟️ Tracking
PM-5594
📔 Objective
serverPR 6829 introduces the feature flag behind this update.Allows the re-enabling of account switching in the Safari browser extension.
Recent investigations have shown whatever the cause of significant performance issues in Safari browser extension when account switching was introduced have been resolved. Local attempts to observe performance slowdown have failed to reproduce anything measurable.
This update includes a modest refactor to drive the enablement of account switching toward a server-provided feature flag, away from the client-side compile-time flag which was used for what are understood to be historical reasons (not technical reasons). This will further allow for a controlled rollout, or a rollback if necessary. To tightly scope the change and to facilitate future unwinding, the enablement check has been moved to the
AccountSwitcherService(domain responsibility).📸 Screenshots
Flag Off
Feature flag off, preserving current state of "no account switching on Safari extension."
PM-5594__flag-off.mov
Flag On
The feature flag is evaluated after
BrowserApi.isSafariis evaluated, allowing the controlled configuration of behavior for Safari browser.PM-5594__flag-on.mov
⏰ Reminders before review
🦮 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