-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: Fix background popup client connection count #23583
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: app/scripts/background.js
Did you find this useful? React with a 👍 or 👎 |
Builds ready [499522d]
Page Load Metrics (1288 ± 538 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Builds ready [df03fb2]
Page Load Metrics (1043 ± 570 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [f32046c]
Page Load Metrics (489 ± 391 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #23583 +/- ##
========================================
Coverage 68.82% 68.82%
========================================
Files 1170 1170
Lines 44389 44389
Branches 11879 11879
========================================
Hits 30549 30549
Misses 13840 13840 ☔ View full report in Codecov by Sentry. |
Missing release label release-11.14.0 on PR. Adding release label release-11.14.0 on PR and removing other release labels(release-11.14.1), as PR was added to branch 11.14.0 when release was cut. |
Description
Currently it is possible to open more than one extension popup (the window that opens when you click on the extension icon from the browser toolbar), but background currently only considers it possible to have one open. This results in a bug where if two or more popups are open and one is closed, any ongoing gas fee polling will stop for all popups not just the one recently closed. This PR fixes this by changing the variable that tracks popup connection counts from a boolean to an int.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Screen.Recording.2024-03-19.at.9.31.05.AM.mov
Pre-merge author checklist
Pre-merge reviewer checklist