Revision: 4553
Author: erights
Date: Wed Jul 13 18:57:51 2011
Log: SES improvements
http://codereview.appspot.com/4662090
[email protected]
http://code.google.com/p/google-caja/source/detail?r=4553
Modified:
/trunk/src/com/google/caja/ses/WeakMap.js
/trunk/src/com/google/caja/ses/repairES5.js
/trunk/src/com/google/caja/ses/startSES.js
/trunk/src/com/google/caja/ses/whitelist.js
/trunk/tools/myvn
=======================================
--- /trunk/src/com/google/caja/ses/WeakMap.js Sun Jun 5 11:15:21 2011
+++ /trunk/src/com/google/caja/ses/WeakMap.js Wed Jul 13 18:57:51 2011
@@ -53,13 +53,13 @@
* names.
*
* <p>Another difference is that our emulated {@code
- * WeakMap.prototype} is not itself a WeakMap. A
- * problem with the current FF6.0a1 API is that WeakMap.prototype is
- * itself a WeakMap providing ambient mutability and an ambient
- * communications channel. Thus, if a WeakMap is already present and
- * has this problem, es5shim.js wraps it in a safe wrappper in order
- * to prevent access to this channel. (See
- * PATCH_MUTABLE_FROZEN_WEAKMAP_PROTO in es5shim.js).
+ * WeakMap.prototype} is not itself a WeakMap. A problem with the
+ * current FF6.0a1 API is that WeakMap.prototype is itself a WeakMap
+ * providing ambient mutability and an ambient communications
+ * channel. Thus, if a WeakMap is already present and has this
+ * problem, repairES5.js wraps it in a safe wrappper in order to
+ * prevent access to this channel. (See
+ * PATCH_MUTABLE_FROZEN_WEAKMAP_PROTO in repairES5.js).
*/
var WeakMap;
@@ -70,7 +70,7 @@
* absent, install an approximate emulation.
*
* <p>If this is almost a secureable ES5 platform, then WeakMap.js
- * should be run after es5shim.js.
+ * should be run after repairES5.js.
*
* <p>See {@code WeakMap} for documentation of the garbage collection
* properties of this WeakMap emulation.
@@ -86,7 +86,7 @@
/**
* Holds the orginal static properties of the Object constructor,
- * after es5shim fixes these if necessary to be a more complete
+ * after repairES5 fixes these if necessary to be a more complete
* secureable ES5 environment, but before installing the following
* WeakMap emulation overrides and before any untrusted code runs.
*/
=======================================
--- /trunk/src/com/google/caja/ses/repairES5.js Mon Jun 27 15:44:07 2011
+++ /trunk/src/com/google/caja/ses/repairES5.js Wed Jul 13 18:57:51 2011
@@ -27,29 +27,30 @@
* qualifying browsers already include the latest released versions of
* Internet Explorer (9), Firefox (4), Chrome (11), and Safari
* (5.0.5), their corresponding standalone (e.g., server-side) JavaScript
- * engines, and Rhino 1.73 and BESEN.
+ * engines, Rhino 1.73, BESEN.
*
* <p>On such not-quite-ES5 platforms, some elements of these
* emulations may lose SES safety, as enumerated in the comment on
- * each kludge-switch variable below. The platform must at least
- * provide Object.getOwnPropertyNames, because it cannot reasonably be
- * emulated.
+ * each kludge record in the {@code kludges} array below. The platform
+ * must at least provide {@code Object.getOwnPropertyNames}, because
+ * it cannot reasonably be emulated.
*
* <p>This file is useful by itself, as it has no dependencies on the
* rest of SES. It creates no new global bindings, but merely repairs
* standard globals or standard elements reachable from standard
* globals. If the future-standard {@code WeakMap} global is present,
* as it is currently on FF7.0a1, then it will repair it in place. The
- * one non-standard element that this file uses is {@code console.log}
- * if present, in order to report the repairs it found necessary. If
- * {@code console.log} is absent, then this file performs its repairs
- * silently.
+ * one non-standard element that this file uses is {@code console} if
+ * present, in order to report the repairs it found necessary, in
+ * which case we use its {@code log, info, warn, and error}
+ * methods. If {@code console.log} is absent, then this file performs
+ * its repairs silently.
*
* <p>Generally, this file should be run as the first script in a
* JavaScript context (i.e. a browser frame), as it replies on other
* primordial objects and methods not yet being perturbed.
*
- * TODO(erights): This file tries to protects itself from most
+ * <p>TODO(erights): This file tries to protects itself from most
* post-initialization perturbation, by stashing the primordials it
* needs for later use, but this attempt is currently incomplete. We
* need to revisit this when we support Confined-ES5, as a variant of
@@ -58,33 +59,63 @@
(function(global) {
"use strict";
- function log(str) {
- if (typeof console !== 'undefined' && 'log' in console) {
- // We no longer test (typeof console.log === 'function') since,
- // on IE9 and IE10preview, in violation of the ES5 spec, it
- // is callable but has typeof "object".
- // TODO(erights): report to MS.
- console.log(str);
- }
+ var logger;
+ function logNowhere(str) {}
+
+ if (typeof console !== 'undefined' && 'log' in console) {
+ // We no longer test (typeof console.log === 'function') since,
+ // on IE9 and IE10preview, in violation of the ES5 spec, it
+ // is callable but has typeof "object".
+ // TODO(erights): report to MS.
+
+ // TODO(erights): This assumes without checking that if
+ // console.log is present, then console has working log, info,
+ // warn, and error methods. Check that this is actually the case
+ // on all platforms we care about, or, if not, do something
+ // fancier here.
+ logger = console;
+ } else {
+ logger = {
+ log: logNowhere,
+ info: logNowhere,
+ warn: logNowhere,
+ error: logNowhere
+ };
}
if (!Object.getOwnPropertyNames) {
var complaint = 'Please upgrade to a JavaScript platform ' +
'which implements Object.getOwnPropertyNames';
- log(complaint);
+ logger.error(complaint);
throw new EvalError(complaint);
}
- /////////////// KLUDGE SWITCHES ///////////////
-
- /////////////////////////////////
- // The following are only the minimal kludges needed for the current
- // Firefox, Safari, or the current Chrome Beta. At the time of
- // this writing, these are Firefox 4.0, Safari 5.0.4 (5533.20.27)
- // and Chrome 12.0.742.12 dev
- // As these move forward, kludges can be removed until we simply
- // rely on ES5.
-
+ /**
+ * Tests for https://bugs.webkit.org/show_bug.cgi?id=64250
+ *
+ * <p>No workaround attempted. Just reporting that this platform is
+ * not SES-safe.
+ */
+ function test_GLOBAL_LEAKS_FROM_GLOBAL_FUNCTION_CALLS() {
+ global.___global_test_function___ = function() { return this; };
+ var that = ___global_test_function___();
+ delete global.___global_test_function___;
+ if (that === void 0) { return false; }
+ if (that === global) { return true; }
+ logger.error('New symptom: this leaked as: ' + that);
+ return true;
+ }
+
+ /**
+ *
+ */
+ function test_GLOBAL_LEAKS_FROM_ANON_FUNCTION_CALLS() {
+ var that = (function(){ return this; })();
+ if (that === void 0) { return false; }
+ if (that === global) { return true; }
+ logger.error('New symptom: this leaked as: ' + that);
+ return true;
+ }
/**
* Tests for
@@ -95,15 +126,15 @@
* <p>No workaround attempted. Just reporting that this platform is
* not SES-safe.
*/
- function test_GLOBAL_LEAKS() {
+ function test_GLOBAL_LEAKS_FROM_BUILTINS() {
var v = {}.valueOf;
var that = 'dummy';
try {
that = v();
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: ' +
- 'valueOf() threw ' + err);
+ logger.error('New symptom: ' +
+ 'valueOf() threw ' + err);
return true;
}
return true;
@@ -142,7 +173,7 @@
function foo(){}
if (Object.getOwnPropertyNames(foo).indexOf('callee') < 0) { return
false; }
if (foo.hasOwnProperty('callee')) {
- log('New symptom: empty strict function has own callee');
+ logger.error('New symptom: empty strict function has own callee');
}
return true;
}
@@ -166,13 +197,13 @@
deletion = delete RegExp.leftContext;
} catch (err) {
if (!(err instanceof TypeError)) {
- log('New symptom: deletion failed with ' + err);
+ logger.error('New symptom: deletion failed with ' + err);
}
return true;
}
if (!RegExp.hasOwnProperty('leftContext')) { return false; }
if (deletion) {
- log('New symptom: Deletion of RegExp.leftContext failed.');
+ logger.error('New symptom: Deletion of RegExp.leftContext failed.');
}
return true;
}
@@ -188,7 +219,8 @@
var match = new RegExp('(.|\r|\n)*','').exec()[0];
if (match === 'undefined') { return false; }
if (match !== 'xfoox') {
- log('New symptom: regExp.exec() does not match
against "undefined".');
+ logger.error('New symptom: ' +
+ 'regExp.exec() does not match against "undefined".');
}
return true;
}
@@ -229,7 +261,7 @@
Date.prototype.setFullYear(1957);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: Mutating Date.prototype failed with ' + err);
+ logger.error('New symptom: Mutating Date.prototype failed with ' +
err);
return true;
}
var v = Date.prototype.getFullYear();
@@ -238,7 +270,7 @@
return false;
}
if (v !== 1957) {
- log('New symptom: Mutating Date.prototype did not throw');
+ logger.error('New symptom: Mutating Date.prototype did not throw');
}
return true;
}
@@ -265,12 +297,13 @@
WeakMap.prototype.set(x, 86);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: Mutating WeakMap.prototype failed with ' + err);
+ logger.error('New symptom: ' +
+ 'Mutating WeakMap.prototype failed with ' + err);
return true;
}
var v = WeakMap.prototype.get(x);
if (v !== 86) {
- log('New symptom: Mutating WeakMap.prototype did not throw');
+ logger.error('New symptom: Mutating WeakMap.prototype did not
throw');
}
return true;
}
@@ -301,7 +334,7 @@
return false;
} catch (err) {
if (!(err instanceof TypeError)) {
- log('New Symptom: freezing forEach failed with ' + err);
+ logger.error('New Symptom: freezing forEach failed with ' + err);
}
return true;
}
@@ -372,8 +405,8 @@
if (!derived.hasOwnProperty('foo') ||
Object.getOwnPropertyDescriptor(derived, 'foo').get !== getter ||
Object.getOwnPropertyNames(derived).indexOf('foo') < 0) {
- log('New symptom: ' +
- 'Accessor properties partially inherit as own properties.');
+ logger.error('New symptom: ' +
+ 'Accessor properties partially inherit as own
properties.');
}
Object.defineProperty(base, 'bar', {get: getter, configurable: true});
if (!derived.hasOwnProperty('bar') &&
@@ -381,8 +414,8 @@
Object.getOwnPropertyNames(derived).indexOf('bar') < 0) {
return true;
}
- log('New symptom: ' +
- 'Accessor properties inherit as own even if configurable.');
+ logger.error('New symptom: ' +
+ 'Accessor properties inherit as own even if
configurable.');
return true;
}
@@ -397,8 +430,8 @@
[2,3].sort(function(x,y) { that = this; return x - y; });
if (that === void 0) { return false; }
if (that !== global) {
- log('New symptom: ' +
- 'sort called comparefn with "this" === ' + that);
+ logger.error('New symptom: ' +
+ 'sort called comparefn with "this" === ' + that);
}
return true;
}
@@ -415,8 +448,8 @@
'x'.replace(/x/, function() { that = this; return 'y';});
if (that === void 0) { return false; }
if (that !== global) {
- log('New symptom: ' +
- 'replace called replaceValue function with "this" === ' + that);
+ logger.error('New symptom: replace called replaceValue function ' +
+ 'with "this" === ' + that);
}
return true;
}
@@ -448,15 +481,15 @@
try {
result = name in base;
} catch (err) {
- log('New symptom (a): (\'' +
- name + '\' in <' + baseDesc + '>) threw: ' + err);
+ logger.error('New symptom (a): (\'' +
+ name + '\' in <' + baseDesc + '>) threw: ' + err);
// treat this as a safe absence
result = false;
return false;
} finally {
if (result === void 0) {
- log('New symptom (b): (\'' +
- name + '\' in <' + baseDesc + '>) failed');
+ logger.error('New symptom (b): (\'' +
+ name + '\' in <' + baseDesc + '>) failed');
}
}
return !!result;
@@ -467,15 +500,15 @@
try {
result = has(base, name, baseDesc);
} catch (err) {
- log('New symptom (c): (\'' +
- name + '\' in <' + baseDesc + '>) threw: ' + err);
+ logger.error('New symptom (c): (\'' +
+ name + '\' in <' + baseDesc + '>) threw: ' + err);
// treat this as a safe absence
result = false;
return false;
} finally {
if (result === void 0) {
- log('New symptom (d): (\'' +
- name + '\' in <' + baseDesc + '>) failed');
+ logger.error('New symptom (d): (\'' +
+ name + '\' in <' + baseDesc + '>) failed');
}
}
return !!result;
@@ -501,11 +534,12 @@
caller = testfn(foo);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: builtin "caller" failed with: ' + err);
+ logger.error('New symptom: builtin "caller" failed with: ' + err);
return true;
}
- if ([testfn, void 0, null].indexOf(caller) >= 0) { return false; }
- log('New symptom: Unexpected "caller": ' + caller);
+ if (null === caller || void 0 === caller) { return false; }
+ if (testfn === caller) { return true; }
+ logger.error('New symptom: Unexpected "caller": ' + caller);
return true;
}
@@ -529,7 +563,7 @@
args = testfn(foo);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: builtin "arguments" failed with: ' + err);
+ logger.error('New symptom: builtin "arguments" failed with: ' + err);
return true;
}
if (args === void 0 || args === null) { return false; }
@@ -548,7 +582,7 @@
delete bar.caller;
} catch (err) { }
if (!has2(bar, 'caller', 'a bound function')) {
- log('New symptom: "caller" on bound functions can be deleted.');
+ logger.error('New symptom: "caller" on bound functions can be
deleted.');
return true;
}
// using Function so it'll be non-strict
@@ -558,11 +592,11 @@
caller = testfn(bar);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: bound function "caller" failed with: ' + err);
+ logger.error('New symptom: bound function "caller" failed with: ' +
err);
return true;
}
if ([testfn, void 0, null].indexOf(caller) >= 0) { return false; }
- log('New symptom: Unexpected "caller": ' + caller);
+ logger.error('New symptom: Unexpected "caller": ' + caller);
return true;
}
@@ -578,7 +612,8 @@
delete bar.arguments;
} catch (err) { }
if (!has2(bar, 'arguments', 'a bound function')) {
- log('New symptom: "arguments" on bound functions can be deleted.');
+ logger.error('New symptom: ' +
+ '"arguments" on bound functions can be deleted.');
return true;
}
// using Function so it'll be non-strict
@@ -588,7 +623,8 @@
args = testfn(bar);
} catch (err) {
if (err instanceof TypeError) { return false; }
- log('New symptom: bound function "arguments" failed with: ' + err);
+ logger.error('New symptom: ' +
+ 'bound function "arguments" failed with: ' + err);
return true;
}
if (args === void 0 || args === null) { return false; }
@@ -605,8 +641,8 @@
return true;
}
if (!Array.isArray(x.__proto__)) {
- log('New symptom: JSON.parse did not set "__proto__" as ' +
- 'a regular property');
+ logger.error('New symptom: JSON.parse did not set "__proto__" as ' +
+ 'a regular property');
return true;
}
return false;
@@ -815,7 +851,7 @@
// be impossible to call the ident___ setter.
// TODO(erights): isolate and report this.
if (!complained) {
- log('Undiagnosed call to setter for ident___');
+ logger.warn('Undiagnosed call to setter for ident___');
complained = true;
}
//
@@ -891,7 +927,7 @@
if ('get' in fullDesc &&
fullDesc.enumerable &&
!fullDesc.configurable) {
- log(complaint);
+ logger.warn(complaint);
throw new TypeError(complaint);
}
return defProp(base, name, fullDesc);
@@ -903,9 +939,10 @@
var desc = gopd(base, name);
if ('get' in desc && desc.enumerable) {
if (!desc.configurable) {
- log('New symptom: "' + name + '" already non-configurable');
- }
- log(complaint);
+ logger.error('New symptom: ' +
+ '"' + name + '" already non-configurable');
+ }
+ logger.warn(complaint);
throw new TypeError(complaint);
}
});
@@ -988,8 +1025,26 @@
var kludges = [
{
- description: 'Global object leaks through built-in methods',
- test: test_GLOBAL_LEAKS,
+ description: 'Global object leaks from global function calls',
+ test: test_GLOBAL_LEAKS_FROM_GLOBAL_FUNCTION_CALLS,
+ repair: void 0,
+ canRepairSafely: false,
+ urls: ['https://bugs.webkit.org/show_bug.cgi?id=64250'],
+ sections: ['10.2.1.2', '10.2.1.2.6'],
+ tests: []
+ },
+ {
+ description: 'Global object leaks from anonymous function calls',
+ test: test_GLOBAL_LEAKS_FROM_ANON_FUNCTION_CALLS,
+ repair: void 0,
+ canRepairSafely: false,
+ urls: [],
+ sections: [],
+ tests: []
+ },
+ {
+ description: 'Global object leaks from built-in methods',
+ test: test_GLOBAL_LEAKS_FROM_BUILTINS,
repair: void 0,
canRepairSafely: false,
urls: ['https://bugs.webkit.org/show_bug.cgi?id=51097',
@@ -1116,7 +1171,8 @@
test: test_BUILTIN_LEAKS_CALLER,
repair: void 0,
canRepairSafely: false,
- urls: ['https://bugzilla.mozilla.org/show_bug.cgi?id=591846',
+ urls: ['http://code.google.com/p/v8/issues/detail?id=1548',
+ 'https://bugzilla.mozilla.org/show_bug.cgi?id=591846',
'http://wiki.ecmascript.org/doku.php?id=' +
'conventions:make_non-standard_properties_configurable'],
sections: [],
@@ -1127,7 +1183,8 @@
test: test_BUILTIN_LEAKS_ARGUMENTS,
repair: void 0,
canRepairSafely: false,
- urls: ['https://bugzilla.mozilla.org/show_bug.cgi?id=591846',
+ urls: ['http://code.google.com/p/v8/issues/detail?id=1548',
+ 'https://bugzilla.mozilla.org/show_bug.cgi?id=591846',
'http://wiki.ecmascript.org/doku.php?id=' +
'conventions:make_non-standard_properties_configurable'],
sections: [],
@@ -1188,10 +1245,15 @@
return kludge.test();
});
+ var seemsSafe = true;
+
kludges.forEach(function(kludge, i) {
var status = '';
+ var level = 'warn';
if (beforeFailures[i]) { // failed before
if (afterFailures[i]) { // failed after
+ seemsSafe = false;
+ level = 'error';
if (kludge.repair) {
status = 'Repair failed';
} else {
@@ -1206,17 +1268,23 @@
}
} else { // succeeded before
if (afterFailures[i]) { // failed after
+ seemsSafe = false;
+ level = 'error';
status = 'Broken by other attempted repairs';
} else { // succeeded after
// nothing to see here, move along
return;
}
}
- log(i + ': ' + kludge.description + '. ' +
- status + '. ' +
- (kludge.canRepairSafely ? '' : 'This platform is not SES-safe. ') +
- // TODO(erights): select most relevant URL based on platform
- (kludge.urls[0] ? 'See ' + kludge.urls[0] : ''));
+ var note = '';
+ if (!kludge.canRepairSafely) {
+ seemsSafe = false;
+ note = 'This platform is not SES-safe. ';
+ }
+ logger[level](i + ' ' + status + ': ' +
+ kludge.description + '. ' + note +
+ // TODO(erights): select most relevant URL based on
platform
+ (kludge.urls[0] ? 'See ' + kludge.urls[0] : ''));
});
// TODO(erights): If we arrive here with the platform still in a
@@ -1224,5 +1292,6 @@
// client (such as SES) can decide to abort. We should *not* simply
// throw an exception, because that limits the utility of this
// module for non-SES uses.
+ return seemsSafe;
})(this);
=======================================
--- /trunk/src/com/google/caja/ses/startSES.js Fri May 13 17:46:28 2011
+++ /trunk/src/com/google/caja/ses/startSES.js Wed Jul 13 18:57:51 2011
@@ -180,25 +180,6 @@
// As these move forward, kludges can be removed until we simply
// rely on ES5.
- /**
- * Workaround for http://code.google.com/p/v8/issues/detail?id=1321
- * and https://bugs.webkit.org/show_bug.cgi?id=58338
- *
- * <p>This switch simply reflects that not all almost-ES5 browsers
- * yet implement strict mode.
- *
- * <p>This kludge is <b>not</b> safety preserving. By proceeding
- * without a full strict mode implementation, many of the security
- * properties SES relies on, like non-leakage of the global object,
- * are lost.
- *
- * <p>See also https://bugzilla.mozilla.org/show_bug.cgi?id=482298
- * TODO(erights): verify that all the open bugs this one depends do
- * not matter for SES security.
- */
- //var REQUIRE_STRICT = true;
- var REQUIRE_STRICT = false;
-
/**
* <p>TODO(erights): isolate and report this.
*
@@ -229,14 +210,10 @@
if (typeof WeakMap === 'undefined') {
fail('No built-in WeakMaps, so WeakMap.js must be loaded first');
}
-
- if (REQUIRE_STRICT && (function() { return this; })()) {
- fail('Requires at least ES5 support');
- }
/**
- * Code being eval'ed sees <tt>root</tt> as its <tt>this</tt>, as if
- * <tt>root</tt> were the global object.
+ * Code being eval'ed sees <tt>root</tt> as its top-level
+ * <tt>this</tt>, as if <tt>root</tt> were the global object.
*
* <p>Root's properties are exactly the whitelisted global variable
* references. These properties, both as they appear on the global
@@ -627,7 +604,8 @@
*/
function read(base, name) {
var desc = Object.getOwnPropertyDescriptor(base, name);
- if (desc && 'value' in desc && !desc.writable && !desc.configurable) {
+ if (!desc) { return undefined; }
+ if ('value' in desc && !desc.writable && !desc.configurable) {
return desc.value;
}
@@ -791,7 +769,7 @@
if (cantNeuter.length >= 1) {
var complaint = cantNeuter.map(function(p) {
- var desc = Object.getPropertyDescriptor(p.base, p.name);
+ var desc = Object.getOwnPropertyDescriptor(p.base, p.name);
if (!desc) {
return ' Missing ' + p.name;
}
=======================================
--- /trunk/src/com/google/caja/ses/whitelist.js Fri May 13 17:46:28 2011
+++ /trunk/src/com/google/caja/ses/whitelist.js Wed Jul 13 18:57:51 2011
@@ -112,25 +112,9 @@
eval: t,
Function: t
},
- Q: { // Dr. SES support
- get: t,
- post: t,
- put: t,
- 'delete': t,
- when: t,
- defer: t,
- reject: t,
- ref: t,
- near: t,
- defined: t,
- run: t,
- Promise: t,
- isPromise: t,
- def: t
- },
WeakMap: { // ES-Harmony proposal as currently implemented by
FF6.0a1
prototype: {
- // Note: coordinate this list with maintenance of es5shim.js
+ // Note: coordinate this list with maintenance of repairES5.js
get: t,
set: t,
has: t,
@@ -146,7 +130,7 @@
Object: {
getPropertyDescriptor: t, // ES-Harmony proposal
getPropertyNames: t, // ES-Harmony proposal
- identical: t, // ES-Harmony proposal
+ is: t, // ES-Harmony proposal
prototype: {
constructor: '*',
toString: '*',
@@ -310,7 +294,7 @@
},
Date: { // no-arg Date constructor is
questionable
prototype: {
- // Note: coordinate this list with maintanence of es5shim.js
+ // Note: coordinate this list with maintanence of repairES5.js
getYear: t, // ES5 Appendix B
setYear: t, // ES5 Appendix B
toGMTString: t, // ES5 Appendix B
=======================================
--- /trunk/tools/myvn Fri Oct 8 14:27:42 2010
+++ /trunk/tools/myvn Wed Jul 13 18:57:51 2011
@@ -18,19 +18,19 @@
# (3) Muck around with some source files
# See Eclipse steps below
# (4) Prepare a changelist
-# $ myvn change
+# $ tools/myvn change
# Should pop up an editor. Check the EDITOR, or SVNEDITOR environment
# variables if it doesn't
# (5) Send it off for review
-# $ myvn mail --reviewer [email protected]
+# $ tools/myvn mail --reviewer
[email protected]
# This will automatically CC google-caja-discuss
# (6) Look for the review at codereview.appspot.com.
# If you forget the changelist number, run
-# $ myvn describe
+# $ tools/myvn describe
# (7) Update your changes based on feedback and snapshot
-# $ myvn snapshot
+# $ tools/myvn snapshot
# (8) Commit the change
-# $ myvn submit
+# $ tools/myvn submit
#
#
# ====================
@@ -38,7 +38,7 @@
# ====================
# (1) Build jars
# (2) Generate the project
-# $ myvn eclipse
+# $ tools/myvn eclipse
# (3) Open Eclipse
# (4) Choose New Java Project (NOT new google3 project)
# (5) From Existing Source