|
|
This patch updates use of Caja to rev 4057.
It updates the calling API as well as its resource-fetching mechanism to use an injected RequestPipeline.
Using CajaHtmlParser as GadgetHtmlParser, due to its use/support of namespaces, is required for caja to work as of this CL. Instances using NekoSimplifiedHtmlParser will *not* work when cajoling content!
This CL does not switch Shindig's default HTML parser to CajaHtmlParser just yet - a move which is the intended "real" solution - due to a few small lingering issues with namespaced attributes that are being fixed by Caja-team shortly.
An enterprising instantiation wishing to support cajoling could implement a GadgetHtmlParser wrapper to both Neko and Caja, delegating to the latter only when the gadget is to be cajoled.
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+261 lines, -202 lines) |
Patch |
 |
|
java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
|
View
|
|
1 chunk |
+1 line, -1 line |
1 comment
|
Download
|
 |
|
java/gadgets/pom.xml
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/GadgetHtmlParser.java
|
View
|
|
3 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaHtmlParser.java
|
View
|
|
1 chunk |
+14 lines, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaHtmlSerializer.java
|
View
|
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java
|
View
|
|
3 chunks |
+93 lines, -96 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/RpcServlet.java
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizerTest.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaSocialMarkupHtmlParserTest.java
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/old/CajaCssSanitizerTest.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/SanitizingGadgetRewriterTest.java
|
View
|
|
7 chunks |
+13 lines, -44 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/old/SanitizingGadgetRewriterTest.java
|
View
|
|
8 chunks |
+20 lines, -47 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/old/SanitizingRequestRewriterTest.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/RewriterTestBase.java
|
View
|
|
3 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/old/BaseRewriterTestCase.java
|
View
|
|
4 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
|
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/old/HTMLContentRewriterTest.java
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
|
pom.xml
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
Total messages: 5
|