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

Issue 11883043: Change sanitizeCssProperty to take virtualization param like other sanitize* fns (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by MikeSamuel
Modified:
12 years, 8 months ago
Reviewers:
felix8a, kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

We need sanitizeCssProperty to take an ID suffix so it can sanitize <global-name>s. sanitizeStylesheet and sanitizeCssSelectors take a virtualization property with the necessary ID suffix. This change changes sanitizeCssProperty and all callers to take the same virtualization property and bundles base URI and the URI rewriter that all take into the virtualization property. This CL should not affect the semantics of a cajoled document. ---- Superseded by 11938045

Patch Set 1 #

Patch Set 2 : Change sanitizeCssProperty to take virtualization param like other sanitize* fns #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -124 lines) Patch
M src/com/google/caja/plugin/domado.js View 1 3 chunks +8 lines, -6 lines 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 2 chunks +7 lines, -3 lines 1 comment Download
M src/com/google/caja/plugin/html-sanitizer.js View 1 3 chunks +10 lines, -7 lines 1 comment Download
M src/com/google/caja/plugin/sanitizecss.js View 1 14 chunks +104 lines, -77 lines 1 comment Download
M tests/com/google/caja/plugin/css-stylesheet-test.js View 1 2 chunks +4 lines, -3 lines 0 comments Download
M tests/com/google/caja/plugin/css-stylesheet-tests.js View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 11 chunks +34 lines, -27 lines 0 comments Download

Messages

Total messages: 8
MikeSamuel
12 years, 8 months ago (2013-07-25 23:13:15 UTC) #1
felix8a
does this supersede the previous CL?
12 years, 8 months ago (2013-07-25 23:31:13 UTC) #2
MikeSamuel
We need sanitizeCssProperty to take an ID suffix so it can sanitize <global-name>s. sanitizeStylesheet and ...
12 years, 8 months ago (2013-07-25 23:54:27 UTC) #3
MikeSamuel
On 2013/07/25 23:54:27, MikeSamuel wrote: > We need sanitizeCssProperty to take an ID suffix so ...
12 years, 8 months ago (2013-07-25 23:59:39 UTC) #4
kpreid2
https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/html-emitter.js File src/com/google/caja/plugin/html-emitter.js (right): https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/html-emitter.js#newcode518 src/com/google/caja/plugin/html-emitter.js:518: var virtualization = Object.create(domicile.virtualization); Why does this exist as ...
12 years, 8 months ago (2013-07-26 00:02:32 UTC) #5
felix8a
https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/sanitizecss.js#newcode124 src/com/google/caja/plugin/sanitizecss.js:124: * @param {{ sanitizeCssProperty is a public api. Changing ...
12 years, 8 months ago (2013-07-26 00:12:34 UTC) #6
kpreid2
On 2013/07/26 00:12:34, felix8a wrote: > https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/sanitizecss.js > File src/com/google/caja/plugin/sanitizecss.js (right): > > https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/sanitizecss.js#newcode124 > ...
12 years, 8 months ago (2013-07-26 00:17:48 UTC) #7
MikeSamuel
12 years, 8 months ago (2013-07-26 00:21:57 UTC) #8
On 2013/07/26 00:12:34, felix8a wrote:
>
https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/...
> File src/com/google/caja/plugin/sanitizecss.js (right):
> 
>
https://codereview.appspot.com/11883043/diff/5001/src/com/google/caja/plugin/...
> src/com/google/caja/plugin/sanitizecss.js:124: * @param {{
> sanitizeCssProperty is a public api. Changing the signature like this will
break
> some users. this was a minor problem last time it changed. I'm ok with
changing
> it, but releases are less traumatic if we do it as: add new interface,
deprecate
> old interface, migrate users, delete old interface.

Fair enough.  I'll table this CL, rethink how to do this then, and tackle it
fresh tomorrow.
Sign in to reply to this message.

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