-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove mouse event listeners on browser close #448
Remove mouse event listeners on browser close #448
Conversation
@jonathanKingston I changed the base so this is part of RC1 today |
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.
Thanks for this fix! 👍 Could you please refactor just one thing that could kick us in the future?
@@ -85,6 +85,11 @@ final class BrowserTabViewController: NSViewController { | |||
addMouseMonitors() | |||
} | |||
|
|||
override func viewWillDisappear() { |
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.
I know it was previously like this, but safer is to call addMouseMonitors()
in viewWillAppear()
.
The reason is viewWillAppear
and viewWillDisappear
are called multiple times during the lifecycle of the view controller. viewDidLoad()
just once
I would like to compile another build for testing so I speed up this PR a bit by doing the requested change myself. I will ask someone else to review |
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! Was able to open / close windows, navigate to sites, click on menu / fire button, repeat.
30ff977
to
ffc23e0
Compare
# By Tomas Strba (6) and others # Via GitHub (1) and Tomas Strba (1) * develop: Logins+ authentication (#438) Update privacy dashboard to main (#451) Version 0.19.1 Remove mouse event listeners on browser close (#448) Find in Page Hotfix + refactoring of forced unwrapping (#450) Memory leak fixed (#449) Version 0.19.0 Top autofill (#432) Option to add new notes or edit existing is disabled (#446) Use our own autoconsent fork (#444) New Feedback Form (#424) Update privacy dashboard (#440) # Conflicts: # DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved # DuckDuckGo/SecureVault/View/PasswordManager.storyboard
* develop: Logins+ authentication (#438) Update privacy dashboard to main (#451) Version 0.19.1 Remove mouse event listeners on browser close (#448) Find in Page Hotfix + refactoring of forced unwrapping (#450) Memory leak fixed (#449) Version 0.19.0 Top autofill (#432) Option to add new notes or edit existing is disabled (#446) Use our own autoconsent fork (#444)
Task/Issue URL: https://app.asana.com/0/1199178362774117/1201889534538164/f
Tech Design URL:
CC:
Description:
Fixes browser restart click handler issue.
Steps to test this PR:
Please describe the issue in as much detail as possible.:
At steps 4 and 6, clicking doesn't should now work.
Testing checklist:
Internal references:
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM