Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[continue-section]: Prevent animating out privacy notice a second time
When the privacy notice animation ends (or is aborted), we update the visibility of the ContinueSection which results in the deletion of the privacy toast view. In an event where the continue section tries to animate the privacy toast a second time, the first animation will be canceled, resulting in the view getting deleted and the second animation crashing because an UAF event. Exit early AnimateDismissToast() if the privacy notice is already animating out to prevent deleting the view in this case. (cherry picked from commit a5b3791) Bug: 1326237 Change-Id: Ie0823d1e54a01b1611e8881de1d9df57f0565027 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3649497 Reviewed-by: Toni Barzic <tbarzic@chromium.org> Commit-Queue: Ana Salazar <anasalazar@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1003985} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3654260 Auto-Submit: Ana Salazar <anasalazar@chromium.org> Commit-Queue: Toni Barzic <tbarzic@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5060@{#85} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information