Reviewers: metaweta,
Description: Remove Cajita/Valija flag as an input to all cajoling services. Rely only on the source itself to tell us whether it is Valija (the default) or Cajita (via a "use cajita" pragma). Cajole all files to a consistent output filename (*.out.js). These changes allow the (Cajita-level) module loader to predictably load a module regardless of whether it is Valija or Cajita. Because we build our Valija module loader on top of Cajita, the Cajita loader did not have the information of whether a module to be loaded is Cajita or Valija; as far as it was concerned, everything is Cajita. Which is as it should be -- Valija is just Cajita with a funky calling convention. Please review this at http://codereview.appspot.com/136053 Affected files: M build.xml M src/com/google/caja/cajita-module.js M src/com/google/caja/cajita.js M src/com/google/caja/commonjs-sandbox.js M src/com/google/caja/demos/applet/CajaApplet.java M src/com/google/caja/demos/applet/testbed.js M src/com/google/caja/opensocial/DefaultGadgetRewriter.java M src/com/google/caja/opensocial/GadgetRewriterMain.java M src/com/google/caja/plugin/BuildServiceImplementation.java M src/com/google/caja/plugin/ExpressionSanitizerCaja.java M src/com/google/caja/plugin/PluginCompilerMain.java M src/com/google/caja/plugin/PluginMeta.java M src/com/google/caja/plugin/stages/ValidateJavascriptStage.java M src/com/google/caja/service/CajolingService.java M src/com/google/caja/service/HtmlHandler.java M src/com/google/caja/service/JsHandler.java M src/com/google/caja/valija-cajita.js M tests/com/google/caja/a.js M tests/com/google/caja/c.js M tests/com/google/caja/demos/applet/CajaAppletTest.java M tests/com/google/caja/demos/benchmarks/BenchmarkRunner.java M tests/com/google/caja/demos/benchmarks/BenchmarkSize.java M tests/com/google/caja/foo/b.js M tests/com/google/caja/foo/f.js M tests/com/google/caja/opensocial/DefaultGadgetRewriterTest.java M tests/com/google/caja/opensocial/example-rewritten.xml M tests/com/google/caja/parser/quasiliteral/c.js M tests/com/google/caja/parser/quasiliteral/foo/b.js M tests/com/google/caja/parser/quasiliteral/foo/testPrimordials.js M tests/com/google/caja/plugin/ExpressionSanitizerTest.java M tests/com/google/caja/plugin/HtmlCompiledPluginTest.java M tests/com/google/caja/plugin/domita_test.html M tests/com/google/caja/plugin/domita_test_untrusted.html M tests/com/google/caja/plugin/jsunit.js M tests/com/google/caja/plugin/stages/DebuggingSymbolsStageTest.java M tests/com/google/caja/recursion.js M tests/com/google/caja/service/GadgetHandlerTest.java
