Author: erights
Date: Sun Apr 5 11:06:22 2009
New Revision: 3404
Modified:
wiki/SubsetRelationships.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/SubsetRelationships.wiki
==============================================================================
--- wiki/SubsetRelationships.wiki (original)
+++ wiki/SubsetRelationships.wiki Sun Apr 5 11:06:22 2009
@@ -15,10 +15,10 @@
* _Cajita_ (Spanish for _small box_) is the Caja kernel language ---
an object-capability language supporting defensive programming.
* _Valija_ (Spanish for _baggage_) is the ES3 subset of ES5-strict.
Old !JavaScript code can easily be ported to Valija. Once ported, it will
work on both current and future !JavaScripts. Valija exists _only_ to
accommodate old code. The additional elements of !JavaScript it includes,
such as `this`, make it unsuitable for writing defensive code. Instead,
Valija is used only to isolate potentially offensive code.
-Besides the normal object-capability constraints, Cajita was shaped by the
need to simultaneously satisfy all four of the depicted relationships as
well as is practical.
+Besides the normal object-capability constraints, Cajita was shaped by the
need to simultaneously support all four of the depicted relationships, as
well as is practical today.
* _T = TranslationTarget_. Cajita is implemented by translation
to !JavaScript as run by current browsers.
- * _N = NiceNeighbor_. Cajita code coexists with some amount of
untranslated !JavaScript code. This coexistence must have a well defined
semantics and useful safety properties. Today, the NiceNeighbor property is
supported only by Taming.
+ * _N = NiceNeighbor_. Cajita code coexists with some amount of
untranslated !JavaScript code. This coexistence must have a well defined
semantics and useful safety properties. Today, the NiceNeighbor property
supports safety only in one direction -- protecting
untranslated !JavaScript from potentially offensive Cajita code.
* _S = SimpleSubset_. The first enemy of security is complexity. Due
to !JavaScript's history, it is needlessly complex. Cajita is approximately
the simplest subset of !JavaScript we could find with no loss of
functionality for new code.
* _E = EmbeddedEmulation_. !JavaScript, and therefore Valija, supports
mutable static state, which violates object-capability rules. To support
multiple isolated Valija sandboxes on one web page, we translate Valija to
Cajita so as to emulate this static state in terms of isolated Cajita
object states.
@@ -26,7 +26,7 @@
Note that Jacaranda does define a set of static rules for permitting safe
limited use of `this`. A future Cajita may adopt these rules.
-Facebook's [http://developers.facebook.com/news.php?blog=1&story=189
FBJS2] and Microsoft's [http://websandbox.livelabs.com/ WebSandbox] have no
intermediate object-capability language, but rather, emulate !JavaScript
directly in !JavaScript, i.e., conventional sandboxing. This supports
isolation of offensive code, but provides no direct support for secure
cooperation or the writing of defensive access abstractions.
+Facebook's [http://developers.facebook.com/news.php?blog=1&story=189
FBJS2] and Microsoft's [http://websandbox.livelabs.com/ WebSandbox] have no
intermediate object-capability language, but rather, emulate !JavaScript
directly in !JavaScript, i.e., conventional sandboxing. This supports
isolation of potentially offensive code, but provides no direct support for
secure cooperation or the writing of defensive access abstractions.
= Caja Tomorrow =