On Mon, 20 Feb 2023 14:15:07 GMT, Jose Pereda <jper...@openjdk.org> wrote:
> This PR removes an unnecessary check that was added as part of > [JDK-8267551](https://bugs.openjdk.org/browse/JDK-8267551). > > As commented in the [issue](https://bugs.openjdk.org/browse/JDK-8300872), > there were no failing/passing tests before/after these lines were added, and > there are no actual tests that get into the case. > > The mentioned check caused, as a side effect, the JDK-8300872 issue, as > running under a (deprecated) security manager fails with: > > java.security.AccessControlException: access denied ("java.io.FilePermission" > "jrt:/javafx.controls/com/sun/javafx/scene/control/skin/modena/pattern-transparent.png" > "read") > ... > at javafx.graphics/javafx.scene.image.Image.validateUrl(Image.java:1127) > ... > > when `File::exists` is evaluated over an image bundled in a jar. This pull request has now been integrated. Changeset: b2134505 Author: Jose Pereda <jper...@openjdk.org> URL: https://git.openjdk.org/jfx/commit/b2134505cc0c89637019ce746d5fac6ab708d4e2 Stats: 207 lines in 5 files changed: 196 ins; 5 del; 6 mod 8300872: WebView's ColorChooser fails to initialize when running in security context Reviewed-by: kcr, mstrauss ------------- PR: https://git.openjdk.org/jfx/pull/1042