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

Issue 4211045: Amend caja.js API to support the four methods of providing cajoled code. (Closed)

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

Description

Changes caja.js to support - telling the cajoling service to fetch and cajole content at a url - fetching cached, already cajoled code at a url - posting uncajoled content to the cajoling service - when the cajoler is part of the web server, running cajoled code provided as a string in the page.

Patch Set 1 #

Patch Set 2 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 3 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 4 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 5 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 6 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 7 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 8 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 9 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 10 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 11 : Amend caja.js API to support the four methods of providing cajoled code. #

Total comments: 24

Patch Set 12 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 13 : Amend caja.js API to support the four methods of providing cajoled code. #

Total comments: 12

Patch Set 14 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 15 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 16 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 17 : Amend caja.js API to support the four methods of providing cajoled code. #

Patch Set 18 : Amend caja.js API to support the four methods of providing cajoled code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -64 lines) Patch
M src/com/google/caja/demos/photon/container/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -5 lines 0 comments Download
M src/com/google/caja/es53.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 4 chunks +5 lines, -5 lines 0 comments Download
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +112 lines, -32 lines 0 comments Download
M tests/com/google/caja/plugin/default-test-driver.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -7 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-inout.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-tamed.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -5 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-taming-untamed.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6
ihab.awad
Partial comments; to discuss via chat with Mike Stay. http://codereview.appspot.com/4211045/diff/9015/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right): http://codereview.appspot.com/4211045/diff/9015/src/com/google/caja/es53.js#newcode3136 src/com/google/caja/es53.js:3136: ...
15 years, 4 months ago (2011-03-14 21:31:13 UTC) #1
metaweta
Please check to see that I'm using rawAtUrl and cajoledAtUrl in the right places. http://codereview.appspot.com/4211045/diff/9015/src/com/google/caja/plugin/caja.js ...
15 years, 4 months ago (2011-03-23 01:25:09 UTC) #2
ihab.awad
Very close. Is there a way to create test cases for the 'cajoled' case? Since ...
15 years, 4 months ago (2011-03-23 18:35:24 UTC) #3
metaweta
http://codereview.appspot.com/4211045/diff/25001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/4211045/diff/25001/src/com/google/caja/plugin/caja.js#newcode295 src/com/google/caja/plugin/caja.js:295: Builder.prototype = { On 2011/03/23 18:35:24, ihab.awad wrote: > ...
15 years, 4 months ago (2011-03-23 23:58:45 UTC) #4
metaweta
On 2011/03/23 23:58:45, metaweta wrote: > http://codereview.appspot.com/4211045/diff/25001/src/com/google/caja/plugin/caja.js > File src/com/google/caja/plugin/caja.js (right): > > http://codereview.appspot.com/4211045/diff/25001/src/com/google/caja/plugin/caja.js#newcode295 > ...
15 years, 4 months ago (2011-03-24 00:14:32 UTC) #5
ihab.awad
15 years, 4 months ago (2011-03-24 03:45:20 UTC) #6
lgtm++; looks great!

There is one remaining issue: cajoled() versus raw(). It seems that "cajoled"
means, the stuff I am giving the API is cajoled. "raw" means, the stuff I am
giving the API is un-cajoled. The current usage seems not to fit that.
Sign in to reply to this message.

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