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

Issue 30570043: allow multiple css pseudo-selectors (Closed)

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

Description

The javascript css sanitizer doesn't allow multiple pseudo-selectors, for no particular reason. This fixes it. This fixes issue 1873 https://code.google.com/p/google-caja/issues/detail?id=1873

Patch Set 1 #

Total comments: 5

Patch Set 2 : allow multiple css pseudo-selectors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M src/com/google/caja/plugin/sanitizecss.js View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tests/com/google/caja/plugin/csslexer-test.js View 1 chunk +7 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
felix8a
12 years, 3 months ago (2013-11-21 23:28:10 UTC) #1
felix8a
The javascript css sanitizer doesn't allow multiple pseudo-selectors, for no particular reason. This fixes it. ...
12 years, 3 months ago (2013-11-21 23:34:02 UTC) #2
kpreid2
LGTM https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode643 src/com/google/caja/plugin/sanitizecss.js:643: HISTORY_NON_SENSITIVE_PSEUDO_SELECTOR_WHITELIST.test(tok)) { fix while we're at it: continuation ...
12 years, 3 months ago (2013-11-21 23:36:15 UTC) #3
felix8a
@r5636 https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode643 src/com/google/caja/plugin/sanitizecss.js:643: HISTORY_NON_SENSITIVE_PSEUDO_SELECTOR_WHITELIST.test(tok)) { On 2013/11/21 23:36:15, kpreid2 wrote: > ...
12 years, 3 months ago (2013-11-22 02:16:27 UTC) #4
kpreid2
12 years, 3 months ago (2013-11-22 02:50:51 UTC) #5
Message was sent while issue was closed.
https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/san...
File src/com/google/caja/plugin/sanitizecss.js (right):

https://codereview.appspot.com/30570043/diff/1/src/com/google/caja/plugin/san...
src/com/google/caja/plugin/sanitizecss.js:644: historySensitive =
historySensitive || false;
On 2013/11/22 02:16:28, felix8a wrote:
> I'm thinking of deleting all the historysensitive code in a separate CL,
> since it's unnecessary in all the browsers we support

I agree that should be done. I suggest including a feature test to verify this
and warn/abort, for documenting our requirements if nothing else. (The current
page should always be 'visited', yes?)
Sign in to reply to this message.

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