RFR: 8342460: Remove calls to doPrivileged in javafx.web

Kevin Rushforth kcr at openjdk.org
Thu Oct 31 23:25:57 UTC 2024


On Thu, 31 Oct 2024 22:52:21 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Removes `doPrivileged` calls in the javafx.web module, excluding the code in `{android,ios}`.
>
> modules/javafx.web/src/main/java/com/sun/webkit/Utilities.java line 119:
> 
>> 117:         }
>> 118: 
>> 119:         return MethodHelper.invoke(method, instance, args);
> 
> I think the whole `fwkInvokeWithContext` method and associated constants can be safely removed.

Very unlikely, but I'll take a look when fixing [JDK-8342993](https://bugs.openjdk.org/browse/JDK-8342993), since this method is on my list to be modified.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1620#discussion_r1825275598


More information about the openjfx-dev mailing list