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

Issue 115041: Make ___.prepareModule more paranoid (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by ihab.awad
Modified:
16 years, 6 months ago
Reviewers:
maoziqing, Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Change cajita.js prepareModule to be more paranoid about what it exposes to the Cajita programmer. We wish to preserve the invariant that the module object exposed to Cajita is transitively immutable. In the old way, the debugging information on top-level modules was not being frozen, and was being copied into the module exposed to Cajita, thus serving as a communication channel.

Patch Set 1 #

Patch Set 2 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

Patch Set 3 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

Patch Set 4 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

Patch Set 5 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

Total comments: 2

Patch Set 6 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

Patch Set 7 : Oops, had some unused imports in CajitaRewriterTest.java. Fixed! #

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

Messages

Total messages: 8
ihab.awad
16 years, 7 months ago (2009-09-03 01:34:57 UTC) #1
ihab.awad
Ping.
16 years, 6 months ago (2009-09-10 22:38:25 UTC) #2
maoziqing
On 2009/09/10 22:38:25, ihab.awad wrote: > Ping. LGTM. Sorry, I missed the original message.
16 years, 6 months ago (2009-09-10 22:50:00 UTC) #3
ihab.awad
Jas, I made a bunch of changes here ... could you please look over this ...
16 years, 6 months ago (2009-09-21 18:10:58 UTC) #4
Jasvir
LGTM
16 years, 6 months ago (2009-09-21 20:43:02 UTC) #5
Jasvir
http://codereview.appspot.com/115041/diff/4002/4004 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/115041/diff/4002/4004#newcode2716 Line 2716: setStatic(theModule, 'includedModules', ___.freeze(module.includedModules)); This is transitive freeze because ...
16 years, 6 months ago (2009-09-21 20:43:40 UTC) #6
ihab.awad
http://codereview.appspot.com/115041/diff/4002/4004 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/115041/diff/4002/4004#newcode2716 Line 2716: setStatic(theModule, 'includedModules', ___.freeze(module.includedModules)); On 2009/09/21 20:43:40, jasvir wrote: ...
16 years, 6 months ago (2009-09-21 20:45:25 UTC) #7
ihab.awad
16 years, 6 months ago (2009-09-21 21:26:57 UTC) #8
@3732
Sign in to reply to this message.

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