-
Notifications
You must be signed in to change notification settings - Fork 891
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
[iOS] - Fix alert continuation leak when WebKit automatically cancels the request #27069
Conversation
…uest. Handle manual cancellation as well.
e1c7ae8
to
33b9276
Compare
} | ||
} onCancel: { [weak tab] in |
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.
do you still have to nil externalAppPopupContinuation
if you weak reference tab?
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.
Yes. The continuation needs to have its reference set to nil or it won't be freed until the tab dies.
@@ -429,6 +430,8 @@ class Tab: NSObject { | |||
|
|||
/// Boolean tracking custom url-scheme alert presented | |||
var isExternalAppAlertPresented = false | |||
var externalAppPopup: AlertPopupView? |
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.
and why we store a externalAppPopup
? it's not being used anywhere
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.
Released in v1.75.116 |
Summary
Resolves brave/brave-browser#42986
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: