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

Issue 93041: Fix for issue 1067. (Closed)

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

Description

If a property is marked canRead, then canReadPub should only return true if the property actually exists on the object.

Patch Set 1 #

Patch Set 2 : Fix for issue 1067. #

Patch Set 3 : Fix for issue 1067. #

Total comments: 1

Patch Set 4 : Fix for issue 1067. #

Patch Set 5 : Fix for issue 1067. #

Total comments: 4

Patch Set 6 : Fix for issue 1067. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -5 lines) Patch
M src/com/google/caja/cajita.js View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M src/com/google/caja/valija-cajita.js View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/CommonJsRewriterTestCase.java View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 9
metaweta
16 years, 11 months ago (2009-07-13 23:31:05 UTC) #1
MarkM
LGTM, but see my question. http://codereview.appspot.com/93041/diff/2002/2004 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/93041/diff/2002/2004#newcode1373 Line 1373: if (obj[name + ...
16 years, 11 months ago (2009-07-14 00:00:03 UTC) #2
metaweta
On 2009/07/14 00:00:03, MarkM wrote: > LGTM, but see my question. > > http://codereview.appspot.com/93041/diff/2002/2004 > ...
16 years, 11 months ago (2009-07-14 00:08:18 UTC) #3
metaweta
The expression "name in obj" fails when obj is a string.
16 years, 11 months ago (2009-07-14 17:06:07 UTC) #4
metaweta
Should I add "obj = Object(obj)" to canReadPub along with your suggested change, or should ...
16 years, 11 months ago (2009-07-14 17:10:33 UTC) #5
metaweta
Snapshotted. This also fixes issue 1076 by testing in inPub whether obj is of type ...
16 years, 11 months ago (2009-07-14 18:56:27 UTC) #6
MarkM
LGTM modulo comments http://codereview.appspot.com/93041/diff/2012/3009 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/93041/diff/2012/3009#newcode1394 Line 1394: if (obj === null || ...
16 years, 11 months ago (2009-07-14 19:14:35 UTC) #7
metaweta
On 2009/07/14 19:14:35, MarkM wrote: > LGTM modulo comments > > http://codereview.appspot.com/93041/diff/2012/3009 > File src/com/google/caja/cajita.js ...
16 years, 11 months ago (2009-07-14 19:57:10 UTC) #8
MarkM
16 years, 11 months ago (2009-07-14 22:37:44 UTC) #9
LGTM
Sign in to reply to this message.

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