|
See the comments in UriPolicy.java.
This changes the signature to use two enum values instead of a
mime-type so that we can make finer grained distinctions.
After this, next steps towards configurable UriPolicies
specified in JS are
(1) Make the loader type and uri effect visible from JS code.
(2) Define a utility UriPolicy that is specified in terms of a JS
object.
(3) Change the command line runner and the sandbox so that there
is a way to specify JS for one of these policies.
Open questions:
What in the sandbox proxy needs to change to deal with the new
URL parameters.
Submitted @4133
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+404 lines, -198 lines) |
Patch |
|
M |
src/com/google/caja/demos/playground/server/GWTCajolingServiceImpl.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/lang/html/HTML.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+16 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/lang/html/HtmlSchema.java
|
View
|
1
2
3
4
5
6
|
3 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/lang/html/html4-attributes.json
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/com/google/caja/lang/html/html4-attributes-defs.json
|
View
|
1
2
3
4
5
6
|
8 chunks |
+62 lines, -24 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/lang/html/html4-attributes-whitelist.json
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/BuildServiceImplementation.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+12 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/CssRewriter.java
|
View
|
1
2
3
4
5
6
|
11 chunks |
+25 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/CssValidator.java
|
View
|
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/FileSystemUriPolicy.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/PluginCompilerMain.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/PluginMeta.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/UriPolicy.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+77 lines, -10 lines |
0 comments
|
Download
|
|
A |
src/com/google/caja/plugin/UriPolicyHintKey.java
|
View
|
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/templates/HtmlAttributeRewriter.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
src/com/google/caja/service/GadgetHandler.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/service/HtmlHandler.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/lang/html/HtmlSchemaTest.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/opensocial/DefaultGadgetRewriterTest.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -14 lines |
0 comments
|
Download
|
|
D |
tests/com/google/caja/opensocial/example-dynamic-styles.xml
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
|
D |
tests/com/google/caja/opensocial/example-dynamic-styles-rewritten.xml
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/opensocial/example-rewritten.xml
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/CssRewriterTest.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+54 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/domita_test_untrusted.html
|
View
|
5
6
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/stages/PipelineStageTestCase.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/templates/TemplateCompilerTest.java
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
Total messages: 9
|