TLF Sandbox Violations
Hey TLF Team,
I posted these two issues as comments on your blog, but I had a feeling that that wasn't the proper venue. Also, if anyone else discovers similar issues, now there's a place to post and discuss them.
The issues in question involve parts of the TLF that throw security sandbox violation errors when the framework is used in a SWF that's loaded from another security domain. By allowing the loaded SWF's domain to cross-site-script, these problems go away, but not all content can be trusted with cross-site-scripting.
TLF contains an interface called ISandboxSupport, so I'm certain you guys have considered the issue already. This is just a list of errors that crop up in the current TLF version.
- SelectionManager.checkForDisplayed(), attempts to climb from the container's parents to the stage, to determine whether the container is in the display list. A current workaround is to make the container a subclass of Sprite, which overrides the parent getter to return the stage.
- ContainerController.getContainerController() also climbs the container's parents, looking for lord knows what. The only current workaround for this is to subclass ContainerController, rewrite getContainerController() so that it catches the error and override focusChangeHandler() to use the new getContainerController() function. Because most people don't have the TLF source, this workaround is relatively difficult for most people to work out.
If I find any more sandbox violations, I'll post them here, instead of cluttering up your blog.
