commit | 7846ddba4e71d996cd78a78de27d8f96a7d0bf08 | [log] [tgz] |
---|---|---|
author | Balazs Engedy <engedy@chromium.org> | Mon Feb 19 18:15:18 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 19 18:15:18 2024 |
tree | a4e0a281f89ba783f6a7c10e2fe193e2d4d57050 | |
parent | f8333248ddc52769aa7b190a63850de440d61c1b [diff] |
Resolve races between `PRE_UNSUBSCRIBE` and organic actions. After the user taps the `PRE_UNSUBSCRIBE` action on a notification, we need to complete native startup before we can replace the tapped notification with the "provisionally unsubscribed" service notification. In this time window, the user might have tapped the content or a developer-provided action button. Given the strong indication the user may want to stop getting these notifications, resolve this conflict by silently discarding the action. Furthermore, if the developer closes the notification the user tapped on while the service notification is showing in its stead, do not let the service notification it be canceled. The organic notification is at this point already deleted from the `NotificationDatabase` in response to it being closed by the developer. If the user clicks `UNDO_UNSUBSCRIBE`, we will not restore the cancelled notification. Bug: 324827395 Change-Id: I7079d88069fe54de59ac998cc71efcfc2d26da47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5307141 Commit-Queue: Balazs Engedy <engedy@chromium.org> Reviewed-by: Peter Beverloo <peter@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262427}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.