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

Issue 4641070: Builder pattern api for caja.js (Closed)

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

Description

Alternate calling pattern for caja.js which more clearly identifies type of authority being passed to guest code. Also adds several default network policies. @4555

Patch Set 1 #

Patch Set 2 : Builder pattern api for caja.js #

Patch Set 3 : Builder pattern api for caja.js #

Total comments: 4

Patch Set 4 : Builder pattern api for caja.js #

Patch Set 5 : Builder pattern api for caja.js #

Patch Set 6 : Builder pattern api for caja.js #

Patch Set 7 : Builder pattern api for caja.js #

Total comments: 6

Patch Set 8 : Builder pattern api for caja.js #

Total comments: 4

Patch Set 9 : Builder pattern api for caja.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -198 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 6 7 8 3 chunks +181 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/browser-test-case.js View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-invocation.js View 1 2 3 4 5 6 7 8 2 chunks +153 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-client-uri-rewriting.js View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -38 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domita-events.js View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -16 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domita-special.js View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -13 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-inout.js View 1 2 3 4 5 6 7 8 4 chunks +28 lines, -29 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-tamed.js View 1 2 3 4 5 6 7 8 13 chunks +65 lines, -64 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-untamed.js View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -34 lines 0 comments Download

Messages

Total messages: 8
Jasvir
14 years, 4 months ago (2011-06-23 21:00:22 UTC) #1
Jasvir
Not ready for review yet.
14 years, 4 months ago (2011-07-01 15:44:28 UTC) #2
Jasvir
Snapshot with suggestion from Ihab to call makeES5Frame earlier.
14 years, 3 months ago (2011-07-07 00:01:55 UTC) #3
Jasvir
Added remaining es53 tests. Ready for review.
14 years, 3 months ago (2011-07-10 04:17:10 UTC) #4
ihab.awad
http://codereview.appspot.com/4641070/diff/6001/tests/com/google/caja/plugin/es53-test-cajajs-invocation.js File tests/com/google/caja/plugin/es53-test-cajajs-invocation.js (right): http://codereview.appspot.com/4641070/diff/6001/tests/com/google/caja/plugin/es53-test-cajajs-invocation.js#newcode142 tests/com/google/caja/plugin/es53-test-cajajs-invocation.js:142: registerTest('testBuilderApiContent', function testBuilderApiContent() { Minor nit: would calling it ...
14 years, 3 months ago (2011-07-12 22:45:05 UTC) #5
Jasvir
http://codereview.appspot.com/4641070/diff/6001/tests/com/google/caja/plugin/es53-test-cajajs-invocation.js File tests/com/google/caja/plugin/es53-test-cajajs-invocation.js (right): http://codereview.appspot.com/4641070/diff/6001/tests/com/google/caja/plugin/es53-test-cajajs-invocation.js#newcode142 tests/com/google/caja/plugin/es53-test-cajajs-invocation.js:142: registerTest('testBuilderApiContent', function testBuilderApiContent() { On 2011/07/12 22:45:05, ihab.awad wrote: ...
14 years, 3 months ago (2011-07-12 23:27:17 UTC) #6
ihab.awad
lgtm++ http://codereview.appspot.com/4641070/diff/14001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/4641070/diff/14001/src/com/google/caja/plugin/caja.js#newcode591 src/com/google/caja/plugin/caja.js:591: throw new Error("Method '" + name + "' ...
14 years, 3 months ago (2011-07-12 23:49:46 UTC) #7
Jasvir
14 years, 3 months ago (2011-07-13 06:12:30 UTC) #8
http://codereview.appspot.com/4641070/diff/14001/src/com/google/caja/plugin/c...
File src/com/google/caja/plugin/caja.js (right):

http://codereview.appspot.com/4641070/diff/14001/src/com/google/caja/plugin/c...
src/com/google/caja/plugin/caja.js:591: throw new Error("Method '" + name + "'
before caja is ready");
On 2011/07/12 23:49:47, ihab.awad wrote:
> Perhaps "Called method ..." to be clear what we're kvetching about? ;) Also,
it
> would be nice to be consistent with using single quotes around strings in JS.

Done.

http://codereview.appspot.com/4641070/diff/14001/src/com/google/caja/plugin/c...
src/com/google/caja/plugin/caja.js:637: for (var i=0; i < callbacks_.length;
i++) {
On 2011/07/12 23:49:47, ihab.awad wrote:
> Spaces around operators.

Done.

http://codereview.appspot.com/4641070/diff/21001/src/com/google/caja/plugin/c...
File src/com/google/caja/plugin/caja.js (right):

http://codereview.appspot.com/4641070/diff/21001/src/com/google/caja/plugin/c...
src/com/google/caja/plugin/caja.js:667: // Configure with default defaults
Changed to initialize()

On 2011/07/12 23:49:47, ihab.awad wrote:
> Should we call it something other than "setDefaults" then? Like maybe
> "initializeSettings" or "setup" or "setParams" or ... ${whatever} ... ?

http://codereview.appspot.com/4641070/diff/21001/src/com/google/caja/plugin/c...
src/com/google/caja/plugin/caja.js:762: iframe: errorMaker('iframe')
On 2011/07/12 23:49:47, ihab.awad wrote:
> Missing a public "whenReady" for the "caja" object.

Done.
Sign in to reply to this message.

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