Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4308)

Issue 226970043: Fixes several problems in our support for safe debugging. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by MarkM
Modified:
8 years, 11 months ago
Reviewers:
kpreid_google, kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was exposed to privileged code as a property on ses. Since the ses is accessible only to privileged code, this is not a vulnerability, but it does violate a stated invariant. Caught by trying to verify SES using S5 http://blog.brownplt.org/2011/11/11/s5-javascript-semantics.html Fixes https://code.google.com/p/google-caja/issues/detail?id=1963 Rewires the Error inheritance hierarchy to stay compatible with ES6 while staying safe. Fixes https://code.google.com/p/google-caja/issues/detail?id=1964 On non-v8, debug.js detects of Error.prototype.stack is an accessor property. If so, grab its getter for its own internal use. This now provides proper encapsulation of stack information on FF40 Nightly in addition to the encapsulation we have long had on v8. Fixes https://code.google.com/p/google-caja/issues/detail?id=1965 When detecting a url into the rawgit service that matches a common pattern, useHTMLLogger renders this as a link that takes you to the corresponding page on github with the correct line highlighted.

Patch Set 1 #

Patch Set 2 : Fixes several problems in our support for safe debugging. #

Patch Set 3 : Fixes several problems in our support for safe debugging. #

Total comments: 6

Patch Set 4 : Fixes several problems in our support for safe debugging. #

Total comments: 3

Patch Set 5 : Fixes several problems in our support for safe debugging. #

Patch Set 6 : Fixes several problems in our support for safe debugging. #

Patch Set 7 : Fixes several problems in our support for safe debugging. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -67 lines) Patch
M src/com/google/caja/ses/debug.js View 1 2 3 4 5 7 chunks +57 lines, -9 lines 0 comments Download
M src/com/google/caja/ses/explicit.html View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M src/com/google/caja/ses/repairES5.js View 1 2 3 4 5 6 9 chunks +88 lines, -11 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 6 5 chunks +32 lines, -3 lines 0 comments Download
M src/com/google/caja/ses/useHTMLLogger.js View 1 2 1 chunk +49 lines, -36 lines 0 comments Download
M src/com/google/caja/ses/whitelist.js View 1 2 3 4 5 6 3 chunks +35 lines, -3 lines 0 comments Download

Messages

Total messages: 16
MarkM
9 years ago (2015-04-12 00:53:29 UTC) #1
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
9 years ago (2015-04-12 00:54:12 UTC) #2
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
9 years ago (2015-04-15 06:32:37 UTC) #3
MarkM
New snapshot
9 years ago (2015-04-15 06:39:24 UTC) #4
kpreid_google
https://codereview.appspot.com/226970043/diff/40001/src/com/google/caja/ses/debug.js File src/com/google/caja/ses/debug.js (right): https://codereview.appspot.com/226970043/diff/40001/src/com/google/caja/ses/debug.js#newcode71 src/com/google/caja/ses/debug.js:71: Object.setPrototypeOf(err, FakeError); The above code as well as existing ...
9 years ago (2015-04-15 22:45:39 UTC) #5
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
9 years ago (2015-04-16 20:20:41 UTC) #6
MarkM
https://codereview.appspot.com/226970043/diff/40001/src/com/google/caja/ses/debug.js File src/com/google/caja/ses/debug.js (right): https://codereview.appspot.com/226970043/diff/40001/src/com/google/caja/ses/debug.js#newcode71 src/com/google/caja/ses/debug.js:71: Object.setPrototypeOf(err, FakeError); On 2015/04/15 22:45:39, kpreid_google wrote: > The ...
9 years ago (2015-04-16 20:22:14 UTC) #7
kpreid_google
LGTM https://codereview.appspot.com/226970043/diff/60001/src/com/google/caja/ses/debug.js File src/com/google/caja/ses/debug.js (right): https://codereview.appspot.com/226970043/diff/60001/src/com/google/caja/ses/debug.js#newcode86 src/com/google/caja/ses/debug.js:86: [EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError What happens ...
9 years ago (2015-04-20 17:48:50 UTC) #8
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
9 years ago (2015-04-27 23:46:54 UTC) #9
MarkM
Hi Kevin, I'm done. So either this is all your's now, or you can walk ...
9 years ago (2015-04-27 23:49:20 UTC) #10
MarkM
On 2015/04/27 23:49:20, MarkM wrote: > Hi Kevin, I'm done. So either this is all ...
9 years ago (2015-04-28 00:01:50 UTC) #11
MarkM
Hold on. "ant runtests" doesn't run yet. Investigating.
9 years ago (2015-04-28 00:03:53 UTC) #12
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
9 years ago (2015-04-28 00:17:32 UTC) #13
MarkM
With snapshot 6, "ant runtests" now runs, but its remaining problems are: FAIL: testScriptOnerror: TypeError: ...
9 years ago (2015-04-28 00:21:42 UTC) #14
MarkM
Fixes several problems in our support for safe debugging. Fixes https://code.google.com/p/google-caja/issues/detail?id=1516 The UnsafeError object was ...
8 years, 11 months ago (2015-05-19 04:50:20 UTC) #15
MarkM
8 years, 11 months ago (2015-05-19 04:53:38 UTC) #16
Manually merged in latest changes from caja on github, even though this is still
a myvn client based on the stale state in code.google.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b