Added an on-demand installation of the native OpenURL event handler to the `Application.setOpenURIHandler()`.
This does not break the specification for the affected API, since the requirement of the application being bundled and containing `CFBundleURLTypes` in the `Info.plist` is still valid: macOS will neither launch nor send OpenURL events to an application that does not declare such capabilities it the bundle. Running tests on macOS showed no regressions after this patch. Other platforms are not affected. ------------- Commit messages: - Install OpenURL handler on demand Changes: https://git.openjdk.org/jdk/pull/25967/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25967&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8360120 Stats: 38 lines in 3 files changed: 32 ins; 3 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/25967.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25967/head:pull/25967 PR: https://git.openjdk.org/jdk/pull/25967