On Fri, 17 Jun 2022 15:52:05 GMT, Maxim Kartashev <[email protected]> 
wrote:

> > The CPlatformComponent is a part of JAWT interface, I think we should not 
> > provide such access to the security warning window. So probably it will be 
> > better to set CPlatformLWComponent(which is noop) when we create a warning 
> > icon?
> 
> I did not quite understand that. Could you re-phrase it in terms of code, 
> please?

The CPlatformComponent is a special object which we create for each(most) UI 
components, this CPlatformComponent object store the native pointer to the 
native nslayer so the users native code can draw on top of our components. If 
your investigation in the description is correct and the root cause is 
CWarningWindow+CPlatformComponent, then I suggest to use the noop version of 
that object(the CPlatformLWComponent) inside CWarningWindow. This will block 
the native access to the CWarningWindow.

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

PR: https://git.openjdk.org/jdk/pull/9184

Reply via email to