<AWT Dev> Integrated: 8264786: [macos] All Swing/AWT apps cause Allow Notifications prompt to appear when app is launched

Sergey Bylokhov serb at openjdk.java.net
Mon May 3 20:56:52 UTC 2021


On Tue, 27 Apr 2021 01:09:44 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> The fix for the JDK-8187639 reimplemented the tray icon messages using the standard notification center, it worked fine on macOS 10.9. But on the new macOS, the usage of that API requests permission from the user. Since the code was added to the NSApplicationAWT this request is always shown even if the app does not use tray icons. This fix moves the code to the tray icon itself. I have tested this on macOS 11.2. It will be good if someone can check macOS 10.14 or macOS 10.15.

This pull request has now been integrated.

Changeset: 020236cb
Author:    Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/020236cb9825bf4fa91a495a179623e3fcdc0149
Stats:     24 lines in 4 files changed: 9 ins; 9 del; 6 mod

8264786: [macos] All Swing/AWT apps cause Allow Notifications prompt to appear when app is launched

Reviewed-by: azvegint, kizune

-------------

PR: https://git.openjdk.java.net/jdk/pull/3707


More information about the awt-dev mailing list