Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users can damage content panes, titlebars, etc #4

Closed
io7m opened this issue Jul 11, 2016 · 1 comment
Closed

Users can damage content panes, titlebars, etc #4

io7m opened this issue Jul 11, 2016 · 1 comment
Assignees

Comments

@io7m
Copy link
Member

io7m commented Jul 11, 2016

A window's content pane exposes a writable JOTreeNodeType<SyComponentType>. Let's assume that this is necessary because otherwise the user wouldn't be able to add any components to the content pane. The user can now detach the content pane from the window. The user can traverse up the tree and detach the titlebar from the window, etc.

Let's assume that the content pane wasn't directly exposed as a writable JOTreeNodeType but instead allowed the user to add components via an API that hides the tree itself. The individual component types do still expose their own nodes as JOTreeNodeType values, so by getting write access to a single component anywhere, the user can detach or otherwise mess with any other component in the tree.

@io7m io7m added the bug label Jul 11, 2016
@io7m io7m self-assigned this Jul 11, 2016
@io7m
Copy link
Member Author

io7m commented Jul 11, 2016

The tree implementation needs to provide protection against this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant