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-4053] Add lint to try to limit reappearance of Safari memory leaks #6382

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

dani-garcia
Copy link
Member

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Created two lints to forbid the usage of the two listeners that have caused memory leaks in Safari in the past. The leaks only seem to occur when the listeners are used in the popup window (and indirectly, in any services or classes that the popup uses).

The new rules apply to the entirety of browser and libs, with the exception of some subfolders of autofill which use the forbidden functions but don't trigger the leak. If someone can think of a better file selection for all the files loaded in the popup window, let me know.

@dani-garcia dani-garcia requested review from a team as code owners September 22, 2023 18:51
@github-actions github-actions bot added the needs-qa Marks a PR as requiring QA approval label Sep 22, 2023
@bitwarden-bot
Copy link

bitwarden-bot commented Sep 22, 2023

Logo
Checkmarx One – Scan Summary & Details5dfb9ab6-b5d5-445f-bec4-aca4f6cbf1c9

No New Or Fixed Issues Found

.eslintrc.json Show resolved Hide resolved
@dani-garcia dani-garcia removed the needs-qa Marks a PR as requiring QA approval label Oct 10, 2023
@dani-garcia dani-garcia merged commit 524123a into master Oct 10, 2023
53 checks passed
@dani-garcia dani-garcia deleted the ps/safari-memory-leak-lint branch October 10, 2023 17:13
BlackDex pushed a commit to BlackDex/bitwarden-clients that referenced this pull request Nov 21, 2023
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.

4 participants