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

Issue 11312043: ES5 repairs for Chrome array mutability bugs. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by kpreid2
Modified:
12 years, 4 months ago
Reviewers:
felix8a, MarkM
CC:
caja-discuss-undisclosed_googlegroups.com, MarkM, felix8a, ihab.awad, Jasvir, metaweta, MikeSamuel
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

* Patch Object.freeze to explicitly defineProperty an array's .length. This prevents some array mutation methods from modifying frozen arrays, including .push(), and avoids the need to patch .push() itself. * Patch Array.prototype.{shift,unshift,splice} which may mutate frozen arrays. * Adjust testRepairReport logic so that a problem configured doNotRepair is not considered to be 'accidentally repaired' if the same repair was used elsewhere. Fixes <https://code.google.com/p/google-caja/issues/detail?id=1816>. @r5551

Patch Set 1 #

Total comments: 10

Patch Set 2 : ES5 repairs for Chrome array mutability bugs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -16 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 chunk +3 lines, -0 lines 0 comments Download
M src/com/google/caja/ses/repairES5.js View 1 16 chunks +166 lines, -16 lines 0 comments Download

Messages

Total messages: 6
kpreid2
12 years, 5 months ago (2013-07-16 00:32:44 UTC) #1
kpreid2
I'm not sure whether this is ready to go yet, but I'm putting it out ...
12 years, 5 months ago (2013-07-16 00:33:31 UTC) #2
MarkM
https://codereview.appspot.com/11312043/diff/1/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/11312043/diff/1/src/com/google/caja/ses/repairES5.js#newcode2105 src/com/google/caja/ses/repairES5.js:2105: unrepairedArrayPush.call(x, 3); I didn't understand at first why you're ...
12 years, 5 months ago (2013-07-16 01:05:57 UTC) #3
kpreid2
* Patch Object.freeze to explicitly defineProperty an array's .length. This prevents some array mutation methods ...
12 years, 5 months ago (2013-07-16 16:47:46 UTC) #4
kpreid2
New snapshot. https://codereview.appspot.com/11312043/diff/1/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/11312043/diff/1/src/com/google/caja/ses/repairES5.js#newcode2105 src/com/google/caja/ses/repairES5.js:2105: unrepairedArrayPush.call(x, 3); On 2013/07/16 01:05:57, MarkM wrote: ...
12 years, 5 months ago (2013-07-16 16:48:55 UTC) #5
MarkM
12 years, 5 months ago (2013-07-16 17:06:59 UTC) #6
LGTM
Sign in to reply to this message.

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