Open juj opened 12 years ago
What would be a default for lets say viewer-browser.xml that is usually used when starting a login from a web portal.
All scripts that show anything visible or offers some functionality to the end user must at least have qt.core and qt.gui. I understand the white and blacklists are quite bad but how would any worlds really have any funtionality without some extension? I assume the 1 option would be default as it is now, trusted storages can use the whitelisted extensions and classes?
For untrusted storages 0, for trusted storages 2. Also an option would be to allow the user to specify the level of trust when choosing to trust a storage.
Currently, the whitelist/blacklist mechanism implemented in JavascriptInstance.cpp is based on a 'gut feeling' without real auditing to security, and e.g. issue #341 escapes this blacklist. To allow more comprehensive options for managing client-side safety, rewrite the script execution logic as follows: