igor%mir2.org 65ceeaed9a Introduction of ContextAction interface as a safe alternative for Context.enter/Context.exit. All usages of Context.enter/Context.exit in Rhino are replaced by
Context.call(new ContextAction() {
	public Object run(Context cx) { ... }
});
or similar alternatives.

It prevents bugs with missed Context.exit and provides room for optimization of Context association with current thread and simplify implementation of safe environment for execution of untrusted applets and scripts.

In addition, Rhino now supports global SecurityController that take precedence over any per/Context controllers so the application can setup the controller once and for all.


git-svn-id: svn://10.0.0.236/trunk@157466 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-06 15:33:59 +00:00
..