Google Caja - A source-to-source translator for securing Javascript-based web content
code.google.com
code.google.com
It also made me wonder about the feasibility of implementing a capabilities system in CLisp or Scheme. So many ideas, so little time...
The spec is great reading, too [PDF]: http://google-caja.googlecode.com/files/caja-spec-2008-06-07...
It seems like a natural fit: your current capability grants would be closed over in any lexical scope, which means that a continuation would also encapsulate a capability set. Resuming the continuation would implicitly restore the security context active when it was captured.