PhoenicisOrg / phoenicis

Phoenicis PlayOnLinux and PlayOnMac 5 repository
https://phoenicis.org/
GNU Lesser General Public License v3.0
678 stars 73 forks source link

Prevent access to Java classes from JS #2015

Open plata opened 5 years ago

plata commented 5 years ago

All functionality used in Javascript shall be implemented as a Bean such that we have a well defined API.

madoar commented 5 years ago

Examples:

plata commented 5 years ago

@qparis do you know how this white listing could be done? For our API we have @Safe but what about the normal Java classes.

qparis commented 5 years ago

Maybe Context#allowHostClassLookup

plata commented 5 years ago

Could you do a proof of concept (for me it's not quite clear currently)?

qparis commented 5 years ago

See PR #2018