commit | 0b34ec029e9b273fba8392afb578eb2a15319757 | [log] [tgz] |
---|---|---|
author | Marijn Kruisselbrink <mek@chromium.org> | Thu Mar 21 17:07:30 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 21 17:07:30 2024 |
tree | f0c86c544a1421132e643a046ef551fbfed9e69b | |
parent | a659b72176eb5c0312aae5d4352fdbddf1d2edb8 [diff] |
Ignore app shim re-open events triggered by notification actions. When the user clicks on a notification, macOS sends our app a "re-open" event. We don't actually want to treat notification clicks as re-open triggers though. Since there doesn't seem to be a good way to detect specifically these re-open events, this CL instead ignores re-open events for a small time period after handling a notification click. While this change does prevent a app window from being opened when we don't want it to, unfortunately the OS still makes the PWA be the active app (regardless of if it has any windows open). But that is at least less disruptive than opening an extra window would be. Bug: 330202394 Change-Id: Ia46b0d9c87bc398b791bf020f86341c71ab49258 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5379275 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by: Finnur Thorarinsson <finnur@chromium.org> Cr-Commit-Position: refs/heads/main@{#1276309}
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.