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

Issue 9945043: Add mitigation options for makeScopeObject (Closed)

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

Description

Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their purpose. Split mitigateGotchas into mitigateSrcGotchas and resolveOptions, where resolveOptions is moved to startSES and mitigateSrcOptions assumes its options are already resolved. That way, the same resolved options object can also be passed to makeScopeObject for the mitigations it performs. These latter mitigations happen even in a minimal SES environment without mitigateGotchas.js maskReferenceError should enable the new jquery to run without rewriting. Added a rewriteFunctionCalls which remains to be implemented https://code.google.com/p/google-caja/issues/detail?id=1755

Patch Set 1 #

Patch Set 2 : Add mitigation options for makeScopeObject #

Patch Set 3 : Add mitigation options for makeScopeObject #

Patch Set 4 : Add mitigation options for makeScopeObject #

Patch Set 5 : Add mitigation options for makeScopeObject #

Patch Set 6 : Add mitigation options for makeScopeObject #

Patch Set 7 : Add mitigation options for makeScopeObject #

Total comments: 11

Patch Set 8 : Add mitigation options for makeScopeObject #

Total comments: 12

Patch Set 9 : Add mitigation options for makeScopeObject #

Patch Set 10 : Add mitigation options for makeScopeObject #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -113 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 6 7 4 chunks +6 lines, -6 lines 0 comments Download
M src/com/google/caja/plugin/ses-frame-group.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M src/com/google/caja/ses/compileExprLater.js View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -8 lines 0 comments Download
M src/com/google/caja/ses/explicit.html View 1 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/ses/makeSimpleAMDLoader.js View 1 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/ses/mitigateGotchas.js View 1 2 3 4 5 6 7 8 chunks +19 lines, -35 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 6 7 8 16 chunks +127 lines, -51 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-language-guest.html View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -5 lines 0 comments Download
M tests/com/google/caja/testParserSpeed.js View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 22:12:29 UTC) #1
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 22:13:56 UTC) #2
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 22:30:38 UTC) #3
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 22:30:51 UTC) #4
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 22:49:51 UTC) #5
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-01 23:07:00 UTC) #6
kpreid2
https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js#newcode319 src/com/google/caja/ses/startSES.js:319: * program with the same semantics as the original ...
12 years, 9 months ago (2013-06-03 18:33:30 UTC) #7
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-04 17:04:57 UTC) #8
MarkM
https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js#newcode319 src/com/google/caja/ses/startSES.js:319: * program with the same semantics as the original ...
12 years, 9 months ago (2013-06-04 17:07:36 UTC) #9
kpreid2
LGTM https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/9945043/diff/18001/src/com/google/caja/ses/startSES.js#newcode319 src/com/google/caja/ses/startSES.js:319: * program with the same semantics as the ...
12 years, 9 months ago (2013-06-04 17:26:46 UTC) #10
MarkM
Adds two new mitigstion options: maskReferenceError and wrapImportedFunction. See the doc-comment in compileExpr for their ...
12 years, 9 months ago (2013-06-04 17:47:34 UTC) #11
MarkM
https://codereview.appspot.com/9945043/diff/22001/src/com/google/caja/plugin/ses-frame-group.js File src/com/google/caja/plugin/ses-frame-group.js (right): https://codereview.appspot.com/9945043/diff/22001/src/com/google/caja/plugin/ses-frame-group.js#newcode35 src/com/google/caja/plugin/ses-frame-group.js:35: // TODO(kpreid): make sure mitigator is applied to guest ...
12 years, 9 months ago (2013-06-04 17:48:42 UTC) #12
kpreid2
LGTM
12 years, 9 months ago (2013-06-04 17:52:22 UTC) #13
Mark S. Miller
Could someone with a working system please check this with "ant runtests"? Thanks. On Tue, ...
12 years, 9 months ago (2013-06-04 17:54:52 UTC) #14
kpreid2
On 2013/06/04 17:54:52, Mark S. Miller wrote: > Could someone with a working system please ...
12 years, 9 months ago (2013-06-04 18:12:02 UTC) #15
ihab.awad
Please patch in the following to get the tests to pass again -- --- tests/com/google/caja/plugin/es53-test-language-guest.html ...
12 years, 9 months ago (2013-06-05 21:25:09 UTC) #16
MarkM
12 years, 9 months ago (2013-06-06 03:33:42 UTC) #17
Adds two new mitigstion options: maskReferenceError and
wrapImportedFunction. See the doc-comment in compileExpr for their
purpose. 

Split mitigateGotchas into mitigateSrcGotchas and resolveOptions,
where resolveOptions is moved to startSES and mitigateSrcOptions
assumes its options are already resolved. That way, the same resolved
options object can also be passed to makeScopeObject for the
mitigations it performs. These latter mitigations happen even in a
minimal SES environment without mitigateGotchas.js

maskReferenceError should enable the new jquery to run without
rewriting. Added a rewriteFunctionCalls which remains to be
implemented
https://code.google.com/p/google-caja/issues/detail?id=1755
Sign in to reply to this message.

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