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

Issue 10181043: Added repair for Function constructor bug (Closed)

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

Description

Repairs verification errors when Function constructor fails to verify body

Patch Set 1 #

Patch Set 2 : Added repair for Function constructor bug #

Total comments: 2

Patch Set 3 : Added repair for Function constructor bug #

Total comments: 2

Patch Set 4 : Added repair for Function constructor bug #

Patch Set 5 : Added repair for Function constructor bug #

Total comments: 4

Patch Set 6 : Added repair for Function constructor bug #

Total comments: 1

Patch Set 7 : Added repair for Function constructor bug #

Total comments: 12

Patch Set 8 : Added repair for Function constructor bug #

Patch Set 9 : Added repair for Function constructor bug #

Patch Set 10 : Added repair for Function constructor bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -82 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -1 line 0 comments Download
M src/com/google/caja/ses/exportsToSES.js View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M src/com/google/caja/ses/mitigateGotchas.js View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -5 lines 0 comments Download
M src/com/google/caja/ses/repairES5.js View 1 2 3 4 5 6 7 8 9 17 chunks +334 lines, -23 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 6 7 8 9 9 chunks +24 lines, -50 lines 0 comments Download

Messages

Total messages: 22
MarkM
12 years, 9 months ago (2013-06-11 03:57:33 UTC) #1
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 9 months ago (2013-06-11 03:57:40 UTC) #2
MarkM
This is ready for review. On Mon, Jun 10, 2013 at 8:57 PM, <erights@gmail.com> wrote: ...
12 years, 9 months ago (2013-06-11 04:00:26 UTC) #3
kpreid2
LGTM https://codereview.appspot.com/10181043/diff/3001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10181043/diff/3001/src/com/google/caja/ses/startSES.js#newcode301 src/com/google/caja/ses/startSES.js:301: if (opt_mitigateOpts.parseProgram === false) { Isn't the point ...
12 years, 9 months ago (2013-06-11 16:57:21 UTC) #4
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 9 months ago (2013-06-12 14:44:47 UTC) #5
MarkM
https://codereview.appspot.com/10181043/diff/3001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10181043/diff/3001/src/com/google/caja/ses/startSES.js#newcode301 src/com/google/caja/ses/startSES.js:301: if (opt_mitigateOpts.parseProgram === false) { On 2013/06/11 16:57:21, kpreid2 ...
12 years, 9 months ago (2013-06-12 14:47:31 UTC) #6
MarkM
https://codereview.appspot.com/10181043/diff/8001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10181043/diff/8001/src/com/google/caja/ses/startSES.js#newcode923 src/com/google/caja/ses/startSES.js:923: ses.verifyStrictProgram(body); Hmm. Already found one bug. This fix to ...
12 years, 9 months ago (2013-06-12 16:03:37 UTC) #7
MarkM
On 2013/06/12 16:03:37, MarkM wrote: > https://codereview.appspot.com/10181043/diff/8001/src/com/google/caja/ses/startSES.js > File src/com/google/caja/ses/startSES.js (right): > > https://codereview.appspot.com/10181043/diff/8001/src/com/google/caja/ses/startSES.js#newcode923 > ...
12 years, 9 months ago (2013-06-13 01:31:20 UTC) #8
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-06 19:46:18 UTC) #9
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-06 20:27:50 UTC) #10
MarkM
https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/exportsToSES.js File src/com/google/caja/ses/exportsToSES.js (left): https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/exportsToSES.js#oldcode36 src/com/google/caja/ses/exportsToSES.js:36: delete global.exports; Because createExports.js is creating the global "exports" ...
12 years, 8 months ago (2013-07-06 20:34:10 UTC) #11
Mark S. Miller
Note that this cannot be submitted until I know what to do about the ses.mitigateSrcGotchas ...
12 years, 8 months ago (2013-07-06 21:29:28 UTC) #12
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-06 21:48:08 UTC) #13
MarkM
https://codereview.appspot.com/10181043/diff/32001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): https://codereview.appspot.com/10181043/diff/32001/src/com/google/caja/plugin/caja.js#newcode456 src/com/google/caja/plugin/caja.js:456: 'SYNTAX_ERRORS_ARENT_ALWAYS_EARLY': { 'permit': true } All the other differences ...
12 years, 8 months ago (2013-07-06 21:50:57 UTC) #14
kpreid2
https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/repairES5.js#newcode3382 src/com/google/caja/ses/repairES5.js:3382: } else if (typeof ses.mitigateSrcGotchas === 'function') { On ...
12 years, 8 months ago (2013-07-06 22:04:56 UTC) #15
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-06 22:44:34 UTC) #16
MarkM
https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10181043/diff/27001/src/com/google/caja/ses/repairES5.js#newcode3382 src/com/google/caja/ses/repairES5.js:3382: } else if (typeof ses.mitigateSrcGotchas === 'function') { On ...
12 years, 8 months ago (2013-07-06 22:47:19 UTC) #17
kpreid2
LGTM https://codereview.appspot.com/10181043/diff/41001/src/com/google/caja/ses/exportsToSES.js File src/com/google/caja/ses/exportsToSES.js (right): https://codereview.appspot.com/10181043/diff/41001/src/com/google/caja/ses/exportsToSES.js#newcode30 src/com/google/caja/ses/exportsToSES.js:30: "use strict"; single quotes https://codereview.appspot.com/10181043/diff/41001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): ...
12 years, 8 months ago (2013-07-09 16:08:47 UTC) #18
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-12 01:25:21 UTC) #19
MarkM
https://codereview.appspot.com/10181043/diff/41001/src/com/google/caja/ses/exportsToSES.js File src/com/google/caja/ses/exportsToSES.js (right): https://codereview.appspot.com/10181043/diff/41001/src/com/google/caja/ses/exportsToSES.js#newcode30 src/com/google/caja/ses/exportsToSES.js:30: "use strict"; On 2013/07/09 16:08:48, kpreid2 wrote: > single ...
12 years, 8 months ago (2013-07-12 01:25:40 UTC) #20
MarkM
Repairs verification errors when Function constructor fails to verify body
12 years, 8 months ago (2013-07-12 01:33:13 UTC) #21
MarkM
12 years, 8 months ago (2013-07-12 01:39:17 UTC) #22
Repairs verification errors when Function constructor fails to verify body
Sign in to reply to this message.

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