|
domita.js exposes plugin_dispatchEvent___ through which all UI events are routed to handlers in untrusted HTML.
Changed the way TemplateCompiler hooks inline event handlers into HTML. Now instead of hanging these handlers from IMPORTS___, they are instead declared in the module scope, and events are attached via (el___.onclick = ...) instead of htmlEmitter___.setAttr(...).
These changes required fixing some problems in the synthetic checks in cajita and valija rewriters. Both had duplicate rules that handled synthetic nodes, but those rules were buggy and had diverged. I moved those rules to a common place, and fixed the synthetic function rule to create a scope to properly handle synthetic functions with formal parameters, and to allow synthetic formal parameters.
Submitted @3648
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+599 lines, -503 lines) |
Patch |
|
M |
src/com/google/caja/opensocial/DefaultGadgetRewriter.java
|
View
|
1
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/parser/js/FunctionDeclaration.java
|
View
|
1
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/com/google/caja/parser/quasiliteral/CajitaRewriter.java
|
View
|
1
3
|
6 chunks |
+9 lines, -213 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/parser/quasiliteral/DefaultValijaRewriter.java
|
View
|
1
3
|
4 chunks |
+3 lines, -212 lines |
0 comments
|
Download
|
|
A |
src/com/google/caja/parser/quasiliteral/SyntheticRuleSet.java
|
View
|
|
1 chunk |
+295 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/templates/SafeHtmlMaker.java
|
View
|
1
3
|
2 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/com/google/caja/plugin/templates/TemplateCompiler.java
|
View
|
1
3
|
2 chunks |
+21 lines, -11 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/opensocial/example-rewritten.xml
|
View
|
1
3
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java
|
View
|
|
4 chunks |
+59 lines, -8 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/parser/quasiliteral/DefaultValijaRewriterTest.java
|
View
|
|
2 chunks |
+145 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/HtmlCompiledPluginTest.java
|
View
|
1
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/domita_test_untrusted.html
|
View
|
1
2
3
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/jsunit.js
|
View
|
1
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/templates/TemplateCompilerTest.java
|
View
|
1
3
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/templates/template-compiler-golden1-dynamic.js
|
View
|
1
3
|
2 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js
|
View
|
1
3
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
tests/com/google/caja/util/CajaTestCase.java
|
View
|
1
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tools/myvn
|
View
|
1
3
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
Total messages: 5
|