I'm trying to imagine an secure sandboxed environment for an application which is big and unexplored, and may contain backdoors. It would live under chroot/virtual environment with no outgoing connections enabled, and all incoming connections will come from local SSL frontend using self-made CA and self-signed client certificate (Apache's RequireSSL directive).
So, no one will be able to connect to application and steal it's data via some backdoor. However, I wonder if the application's client side is technically able to do cross site requests via browser.
Can a page which is open in a self-made SSL context let one of its javascript elements to connect to another server without issuing a visible warning?