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

Issue 96177: Dynamic module loading for Cajita (Closed)

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

Description

Implemented two methods of loading a dynamic module, using script tag and XHR

Patch Set 1 #

Patch Set 2 : Dynamic module loading for Cajita #

Patch Set 3 : Dynamic module loading for Cajita #

Total comments: 26

Patch Set 4 : Dynamic module loading for Cajita #

Patch Set 5 : Dynamic module loading for Cajita #

Total comments: 33

Patch Set 6 : Dynamic module loading for Cajita #

Patch Set 7 : Dynamic module loading for Cajita #

Patch Set 8 : Dynamic module loading for Cajita #

Patch Set 9 : Dynamic module loading for Cajita #

Total comments: 67

Patch Set 10 : Dynamic module loading for Cajita #

Total comments: 14

Patch Set 11 : Dynamic module loading for Cajita #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+841 lines, -39 lines) Patch
M build.xml View 4 5 6 7 8 9 2 chunks +34 lines, -0 lines 0 comments Download
A src/com/google/caja/cajita-module.js View 4 5 6 7 8 9 10 1 chunk +171 lines, -0 lines 4 comments Download
A src/com/google/caja/cajita-promise.js View 4 5 6 7 8 9 1 chunk +296 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/quasiliteral/CajitaModuleRewriter.java View 3 chunks +8 lines, -4 lines 0 comments Download
M src/com/google/caja/parser/quasiliteral/CajitaRewriter.java View 1 2 3 4 5 2 chunks +7 lines, -9 lines 0 comments Download
M src/com/google/caja/parser/quasiliteral/DefaultValijaRewriter.java View 4 5 1 chunk +30 lines, -1 line 0 comments Download
M src/com/google/caja/parser/quasiliteral/ModuleManager.java View 4 5 6 7 8 9 2 chunks +16 lines, -4 lines 0 comments Download
M src/com/google/caja/parser/quasiliteral/RewriterMessageType.java View 6 7 8 9 1 chunk +10 lines, -2 lines 0 comments Download
M src/com/google/caja/valija-cajita.js View 4 10 1 chunk +1 line, -1 line 0 comments Download
A tests/com/google/caja/a.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tests/com/google/caja/c.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tests/com/google/caja/foo/b.js View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java View 1 2 3 4 5 2 chunks +10 lines, -11 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/DefaultValijaRewriterTest.java View 4 5 6 7 8 9 7 chunks +38 lines, -3 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/RewriterTestCase.java View 2 chunks +3 lines, -2 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/foo/b.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A tests/com/google/caja/parser/quasiliteral/x.js View 1 chunk +1 line, -0 lines 0 comments Download
M tests/com/google/caja/plugin/DomitaTest.java View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test.html View 1 2 3 4 5 6 7 8 9 10 3 chunks +40 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 2 3 4 5 6 7 8 9 10 2 chunks +145 lines, -0 lines 0 comments Download
A tests/com/google/caja/recursion.js View 1 chunk +15 lines, -0 lines 0 comments Download
A tests/com/google/caja/x.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14
maoziqing
16 years, 8 months ago (2009-07-28 19:27:33 UTC) #1
ihab.awad
Preliminary comments attached. http://codereview.appspot.com/96177/diff/1028/26 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/96177/diff/1028/26#newcode3172 Line 3172: /* The promise implementation and ...
16 years, 8 months ago (2009-08-03 18:24:09 UTC) #2
maoziqing
http://codereview.appspot.com/96177/diff/1028/26 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/96177/diff/1028/26#newcode3172 Line 3172: /* On 2009/08/03 18:24:09, ihab.awad wrote: > The ...
16 years, 7 months ago (2009-08-16 21:31:41 UTC) #3
ihab.awad
Comments below, to discuss as well. http://codereview.appspot.com/96177/diff/1028/22 File tests/com/google/caja/plugin/domita_test.html (right): http://codereview.appspot.com/96177/diff/1028/22#newcode408 Line 408: function (src) ...
16 years, 7 months ago (2009-08-18 17:33:46 UTC) #4
maoziqing
http://codereview.appspot.com/96177/diff/4026/5034 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/4026/5034#newcode8 Line 8: var xhrModuleLoaderMaker = function() { On 2009/08/18 17:33:47, ...
16 years, 7 months ago (2009-08-18 21:22:26 UTC) #5
ihab.awad
http://codereview.appspot.com/96177/diff/4026/5034 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/4026/5034#newcode26 Line 26: xhr.responseText.replace("___.loadModule", ""))); On 2009/08/18 21:22:26, maoziqing wrote: > ...
16 years, 7 months ago (2009-08-18 21:27:47 UTC) #6
maoziqing
Done. Thanks. On 2009/08/18 21:27:47, ihab.awad wrote: > http://codereview.appspot.com/96177/diff/4026/5034 > File src/com/google/caja/cajita-module.js (right): > > ...
16 years, 7 months ago (2009-08-18 21:36:44 UTC) #7
ihab.awad
Looking pretty good! Some more comments. http://codereview.appspot.com/96177/diff/6048/7049 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/6048/7049#newcode1 Line 1: /** Missing ...
16 years, 7 months ago (2009-08-19 23:34:38 UTC) #8
maoziqing
http://codereview.appspot.com/96177/diff/6048/7049 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/6048/7049#newcode1 Line 1: /** On 2009/08/19 23:34:38, ihab.awad wrote: > Missing ...
16 years, 7 months ago (2009-08-20 19:35:02 UTC) #9
ihab.awad
Plus verbal comments re error conditions in cajita-module.js http://codereview.appspot.com/96177/diff/7064/6075 File src/com/google/caja/valija-cajita.js (right): http://codereview.appspot.com/96177/diff/7064/6075#newcode500 Line 500: ...
16 years, 7 months ago (2009-08-20 21:07:16 UTC) #10
ihab.awad
http://codereview.appspot.com/96177/diff/7064/6069 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/7064/6069#newcode92 Line 92: handle: ___.markFuncFreeze(function theHandler(module) { As we discussed, this ...
16 years, 7 months ago (2009-08-20 22:10:58 UTC) #11
maoziqing
http://codereview.appspot.com/96177/diff/7064/6069 File src/com/google/caja/cajita-module.js (right): http://codereview.appspot.com/96177/diff/7064/6069#newcode92 Line 92: handle: ___.markFuncFreeze(function theHandler(module) { On 2009/08/20 22:10:58, ihab.awad ...
16 years, 7 months ago (2009-08-20 23:12:11 UTC) #12
ihab.awad
LGTM (2 remaining comments, but please check in after addressing these). This is great progress!! ...
16 years, 7 months ago (2009-08-21 00:46:12 UTC) #13
maoziqing
16 years, 7 months ago (2009-08-21 17:15:26 UTC) #14
committed revision 3654

http://codereview.appspot.com/96177/diff/6080/7083
File src/com/google/caja/cajita-module.js (right):

http://codereview.appspot.com/96177/diff/6080/7083#newcode111
Line 111: }
On 2009/08/21 00:46:12, ihab.awad wrote:
> Indentation is wrong here.

Done.

http://codereview.appspot.com/96177/diff/6080/7083#newcode167
Line 167: for (var m in cache) {
On 2009/08/21 00:46:12, ihab.awad wrote:
> Use cajita.forOwnKeys()

Done.
Sign in to reply to this message.

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