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

Issue 26046: Upgrade shindig to the latest caja (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by Jasvir
Modified:
16 years, 1 month ago
Reviewers:
shindig.remailer, Ben Laurie (Google), louiscryan
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

* switches to grantGeneric and grantFunc rather than grantCall to whitelist functions in valija mode * turns on valija mode for gadgets (gadgets were being cajoled in cajita!) * updates the api to handle module header and related changes to the cajoler * corrects errors in css parser tests * changes the test for failCajaTest - this test checks that uncajoleable code causes a message to be added to the message queue. Previously this was done by cajoling a script with a variable containing a triple underscore suffix - a new rule in shindig itself bans double underscore suffixes in variables and that preempts this one. * bumps the version in the pom

Patch Set 1 #

Total comments: 21

Patch Set 2 : Updated to remove cruft and clean up CL #

Total comments: 1

Patch Set 3 : Updated whitelist comments #

Patch Set 4 : Fixes insane xhtml mode bug #

Patch Set 5 : Fixes insane xhtml mode bug #

Patch Set 6 : Adds debugging flag to samplecontainer and deprecated unused permissive flag #

Total comments: 1

Patch Set 7 : Ben-style taming that restores SocialHelloWorld.xml to a working state #

Total comments: 3

Patch Set 8 : Resolves cajoling of scripts included using some absolute urls and all relative urls #

Patch Set 9 : Left over debugging cruft #

Patch Set 10 : Added a large number of new taming decisions to container.js #

Patch Set 11 : Version bump to include YUI fixes in this release #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -78 lines) Patch
M features/src/main/javascript/features/opensocial-reference/container.js View 1 2 3 4 5 6 7 8 9 6 chunks +191 lines, -15 lines 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaCssParser.java View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizer.java View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/HTMLContentRewriter.java View 1 chunk +5 lines, -0 lines 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -6 lines 0 comments Download
M java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaCssParserTest.java View 1 2 3 4 5 6 7 2 chunks +36 lines, -39 lines 0 comments Download
M java/gadgets/src/test/java/org/apache/shindig/gadgets/render/SanitizedRenderingContentRewriterTest.java View 1 2 3 4 5 6 7 2 chunks +18 lines, -4 lines 0 comments Download
M java/server/src/test/java/org/apache/shindig/server/endtoend/EndToEndTest.java View 2 chunks +5 lines, -0 lines 0 comments Download
M java/server/src/test/resources/endtoend/failCajaTest.xml View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M javascript/samplecontainer/examples/SocialCajaWorld.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M javascript/samplecontainer/samplecontainer.html View 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M javascript/samplecontainer/samplecontainer.js View 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M pom.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
Jasvir
This has cruft in it and is missing some tests so is not quite ready ...
16 years, 6 months ago (2009-03-11 04:07:40 UTC) #1
ben
Not sure how we should resolve the question of how best to wrap functions. My ...
16 years, 6 months ago (2009-03-11 13:21:05 UTC) #2
Jasvir
Snapshot http://codereview.appspot.com/26046/diff/1/13 File features/src/main/javascript/features/opensocial-reference/container.js (right): http://codereview.appspot.com/26046/diff/1/13#newcode544 Line 544: // TODO(doll): As caja evolves this method ...
16 years, 6 months ago (2009-03-11 17:23:13 UTC) #3
ben
http://codereview.appspot.com/26046/diff/1/5 File java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java (right): http://codereview.appspot.com/26046/diff/1/5#newcode102 Line 102: rw.setValijaMode(true); On 2009/03/11 13:21:05, ben wrote: > Curious ...
16 years, 6 months ago (2009-03-11 17:37:01 UTC) #4
Jasvir
http://codereview.appspot.com/26046/diff/1/5 File java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java (right): http://codereview.appspot.com/26046/diff/1/5#newcode102 Line 102: rw.setValijaMode(true); I am not averse to change the ...
16 years, 6 months ago (2009-03-11 18:46:16 UTC) #5
Jasvir
Snapshot.
16 years, 6 months ago (2009-03-12 20:58:17 UTC) #6
louiscryan
Looks good. One comment on tests http://codereview.appspot.com/26046/diff/3002/3005 File java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaCssParserTest.java (right): http://codereview.appspot.com/26046/diff/3002/3005#newcode52 Line 52: public void ...
16 years, 6 months ago (2009-03-12 21:17:28 UTC) #7
ben
http://codereview.appspot.com/26046/diff/4006/5014 File features/src/main/javascript/features/opensocial-reference/container.js (right): http://codereview.appspot.com/26046/diff/4006/5014#newcode543 Line 543: return callback && function tamedCallback(args) { return $v.cf(callback, ...
16 years, 6 months ago (2009-03-15 09:26:22 UTC) #8
ben
http://codereview.appspot.com/26046/diff/4006/5014 File features/src/main/javascript/features/opensocial-reference/container.js (right): http://codereview.appspot.com/26046/diff/4006/5014#newcode543 Line 543: return callback && function tamedCallback(args) { return $v.cf(callback, ...
16 years, 6 months ago (2009-03-15 12:23:42 UTC) #9
Jasvir
16 years, 6 months ago (2009-03-22 00:35:27 UTC) #10
Snapshot
* resolves problem with relative and absolute urls
* adds basic tests for caja css parser

http://codereview.appspot.com/26046/diff/4006/5014
File features/src/main/javascript/features/opensocial-reference/container.js
(right):

http://codereview.appspot.com/26046/diff/4006/5014#newcode543
Line 543: return callback && function tamedCallback(args) { return
$v.cf(callback, [ args ]); };
On 2009/03/15 12:23:43, ben wrote:
> As I suggested on IM, the correct version of this looks like:
> 
> function tameCallback($v, callback) {
>   return callback && function tamedCallback() {
>     return $v.cf(callback, Array.slice(arguments, 0));
>   };
> };
> 
> I think!
> 

Done.
Sign in to reply to this message.

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