You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The editor manages assets through the editor-api however both the code editor and launcher manage them individually using their own ObserverLists. This needs to be have a common interface to apply for all pages
The text was updated successfully, but these errors were encountered:
Why do they need to be changed and use the same management system?
Does it bring new features?
Is there a problem that needs to be fixed and it is the only way?
Launcher - only need to know about some assets (not every), and only have to react to its changes.
Code Editor only need to know about Script, Text, JSON, etc. types of assets, and have very limited level of control over them.
Editor - have full access to all assets, and can change anything about them.
So they are different contexts, and have different level of access also. I would not want Launcher to be able to have access to change assets, as it is a security concern. It should be running on read-only mode with limited access to assets. And have a separate token to ensure XSS would not be a risk.
Security concern wise I agree you want the scope to be limited. Ive updated the description to make it clear its for a common interface amongst all pages to replicate behavior across multiple pages - such as in the example of parsing the scripts. Managing separate code for how the editor and code-editor makes it difficult to track and fix issues such as this.
kpal81xd
changed the title
Asset managment system
Common asset management system interface
Nov 13, 2024
The editor manages assets through the
editor-api
however both the code editor and launcher manage them individually using their own ObserverLists. This needs to be have a common interface to apply for all pagesThe text was updated successfully, but these errors were encountered: