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

Issue 6182049: Add more hints to URI policy, and improve "target" attribute handling (Closed)

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

Description

* Consistently send more "hints" to the container's URI policy upon invocation. * Modify "target" attribute handling so that the server side cajoler always produces markup with target="_blank" then always consults a default and whitelist supplied by the container on the client side for rewriting. Assigning felix8a as primary reviewer; jasvir because he had some questions about the API of this change when it was being developed.

Patch Set 1 #

Patch Set 2 : Add more hints to URI policy, and improve "target" attribute handling #

Total comments: 16

Patch Set 3 : Add more hints to URI policy, and improve "target" attribute handling #

Patch Set 4 : Add more hints to URI policy, and improve "target" attribute handling #

Total comments: 6

Patch Set 5 : Add more hints to URI policy, and improve "target" attribute handling #

Patch Set 6 : Add more hints to URI policy, and improve "target" attribute handling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+707 lines, -230 lines) Patch
M src/com/google/caja/lang/html/html4-attributes.json View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M src/com/google/caja/plugin/CssDynamicExpressionRewriter.java View 1 2 1 chunk +15 lines, -4 lines 0 comments Download
M src/com/google/caja/plugin/caja.js View 1 2 3 4 3 chunks +20 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/domado.js View 1 2 10 chunks +80 lines, -14 lines 0 comments Download
M src/com/google/caja/plugin/es53-frame-group.js View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/com/google/caja/plugin/html-sanitizer.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/plugin/sanitizecss.js View 1 2 6 chunks +9 lines, -5 lines 0 comments Download
M src/com/google/caja/plugin/ses-frame-group.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/templates/HtmlAttributeRewriter.java View 1 2 2 chunks +28 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/templates/SafeHtmlMaker.java View 1 2 6 chunks +39 lines, -3 lines 0 comments Download
M src/com/google/caja/plugin/templates/TemplateCompiler.java View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M src/com/google/caja/plugin/templates/TemplateSanitizer.java View 1 2 2 chunks +11 lines, -13 lines 0 comments Download
M tests/com/google/caja/lang/html/HtmlSchemaTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/CssDynamicExpressionRewriterTest.java View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/GeneralBrowserTest.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/HtmlCompiledPluginTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/container.js View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-client-uri-rewriting.js View 1 2 3 4 5 7 chunks +16 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-dom-guest.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-forms-guest.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + tests/com/google/caja/plugin/es53-test-target-attribute-presets.js View 1 2 3 4 2 chunks +71 lines, -112 lines 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 2 10 chunks +20 lines, -20 lines 0 comments Download
M tests/com/google/caja/plugin/templates/TemplateCompilerTest.java View 1 2 18 chunks +290 lines, -26 lines 0 comments Download
M tests/com/google/caja/plugin/templates/TemplateSanitizerTest.java View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-dynamic.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-dynamic.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-nulluripol.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-nulluripol.js View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-static.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M tests/com/google/caja/service/HtmlHandlerTest.java View 1 2 2 chunks +25 lines, -4 lines 0 comments Download

Messages

Total messages: 15
ihab.awad
14 years ago (2012-05-03 21:58:54 UTC) #1
ihab.awad
14 years ago (2012-05-03 23:43:58 UTC) #2
felix8a
http://codereview.appspot.com/6182049/diff/3001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6182049/diff/3001/src/com/google/caja/plugin/caja.js#newcode250 src/com/google/caja/plugin/caja.js:250: if (typeof partial.targetAttributePresets.whitelist.length === 0) { stray 'typeof' http://codereview.appspot.com/6182049/diff/3001/src/com/google/caja/plugin/caja.js#newcode258 ...
14 years ago (2012-05-06 00:09:28 UTC) #3
ihab.awad
14 years ago (2012-05-09 04:43:35 UTC) #4
ihab.awad
Snapshotted. http://codereview.appspot.com/6182049/diff/3001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6182049/diff/3001/src/com/google/caja/plugin/caja.js#newcode250 src/com/google/caja/plugin/caja.js:250: if (typeof partial.targetAttributePresets.whitelist.length === 0) { On 2012/05/06 ...
14 years ago (2012-05-09 04:43:54 UTC) #5
ihab.awad
Snapshotted.
14 years ago (2012-05-09 04:43:57 UTC) #6
ihab.awad
14 years ago (2012-05-09 04:46:52 UTC) #7
felix8a
http://codereview.appspot.com/6182049/diff/12003/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6182049/diff/12003/src/com/google/caja/plugin/caja.js#newcode49 src/com/google/caja/plugin/caja.js:49: ATTRIBUTETYPES: undefined, please quote these keys for Closure http://codereview.appspot.com/6182049/diff/12003/src/com/google/caja/plugin/caja.js#newcode246 ...
14 years ago (2012-05-09 16:06:34 UTC) #8
ihab.awad
14 years ago (2012-05-09 18:12:47 UTC) #9
ihab.awad
http://codereview.appspot.com/6182049/diff/12003/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6182049/diff/12003/src/com/google/caja/plugin/caja.js#newcode49 src/com/google/caja/plugin/caja.js:49: ATTRIBUTETYPES: undefined, On 2012/05/09 16:06:34, felix8a wrote: > please ...
14 years ago (2012-05-09 18:13:11 UTC) #10
felix8a
LGTM
14 years ago (2012-05-09 19:11:09 UTC) #11
ihab.awad
14 years ago (2012-05-09 20:03:15 UTC) #12
felix8a
lgtm again
14 years ago (2012-05-09 20:58:02 UTC) #13
Jasvir
LGTM
14 years ago (2012-05-09 22:49:43 UTC) #14
ihab.awad
13 years, 6 months ago (2012-11-09 22:10:07 UTC) #15
@4874
Sign in to reply to this message.

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