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

Issue 10892043: Issue 1669: Don't silently drop untranslatable CSS selectors (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:
kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

https://code.google.com/p/google-caja/issues/detail?id=1669 > Our CSS selector filter deletes selectors it does not understand, which cannot be virtualized accurately, or which are not yet properly virtualized (particularly, attribute selectors). > If this happens to the input to querySelector, then if no selectors remain, a syntax error occurs because we pass the empty string to the browser querySelector. If one or more selectors make it through, the client will receive an unexpectedly shorter list. This behavior is overly inconsistent. Instead: ---- Submitted @r5475

Patch Set 1 #

Total comments: 10

Patch Set 2 : Issue 1669: Don't silently drop untranslatable CSS selectors #

Patch Set 3 : Issue 1669: Don't silently drop untranslatable CSS selectors #

Patch Set 4 : Issue 1669: Don't silently drop untranslatable CSS selectors #

Total comments: 3

Patch Set 5 : Issue 1669: Don't silently drop untranslatable CSS selectors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -52 lines) Patch
M src/com/google/caja/parser/js/ExpressionStmt.java View 1 2 3 4 2 chunks +21 lines, -4 lines 0 comments Download
M src/com/google/caja/plugin/sanitizecss.js View 1 2 8 chunks +74 lines, -46 lines 0 comments Download
M tests/com/google/caja/plugin/sanitizecss_test.js View 1 2 chunks +49 lines, -2 lines 0 comments Download

Messages

Total messages: 11
MikeSamuel
12 years, 8 months ago (2013-07-02 21:41:27 UTC) #1
kpreid2
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode320 src/com/google/caja/plugin/sanitizecss.js:320: * When a "compound" or "complex" selector Why is ...
12 years, 8 months ago (2013-07-02 21:55:32 UTC) #2
MikeSamuel
https://code.google.com/p/google-caja/issues/detail?id=1669 > Our CSS selector filter deletes selectors it does not understand, which cannot be ...
12 years, 8 months ago (2013-07-03 20:49:08 UTC) #3
MikeSamuel
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode320 src/com/google/caja/plugin/sanitizecss.js:320: * When a "compound" or "complex" selector On 2013/07/02 ...
12 years, 8 months ago (2013-07-03 20:49:23 UTC) #4
kpreid2
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode535 src/com/google/caja/plugin/sanitizecss.js:535: // We disallow absolute positions relative to html. On ...
12 years, 8 months ago (2013-07-03 20:58:51 UTC) #5
MikeSamuel
https://code.google.com/p/google-caja/issues/detail?id=1669 > Our CSS selector filter deletes selectors it does not understand, which cannot be ...
12 years, 8 months ago (2013-07-03 21:31:51 UTC) #6
MikeSamuel
https://code.google.com/p/google-caja/issues/detail?id=1669 > Our CSS selector filter deletes selectors it does not understand, which cannot be ...
12 years, 8 months ago (2013-07-03 21:48:59 UTC) #7
MikeSamuel
https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js File src/com/google/caja/plugin/sanitizecss.js (right): https://codereview.appspot.com/10892043/diff/1/src/com/google/caja/plugin/sanitizecss.js#newcode535 src/com/google/caja/plugin/sanitizecss.js:535: // We disallow absolute positions relative to html. On ...
12 years, 8 months ago (2013-07-03 22:05:39 UTC) #8
kpreid2
LGTM++ https://codereview.appspot.com/10892043/diff/6002/src/com/google/caja/parser/js/ExpressionStmt.java File src/com/google/caja/parser/js/ExpressionStmt.java (right): https://codereview.appspot.com/10892043/diff/6002/src/com/google/caja/parser/js/ExpressionStmt.java#newcode85 src/com/google/caja/parser/js/ExpressionStmt.java:85: // literal. Blank line after here, or make ...
12 years, 8 months ago (2013-07-03 22:09:33 UTC) #9
MikeSamuel
https://codereview.appspot.com/10892043/diff/6002/src/com/google/caja/parser/js/ExpressionStmt.java File src/com/google/caja/parser/js/ExpressionStmt.java (right): https://codereview.appspot.com/10892043/diff/6002/src/com/google/caja/parser/js/ExpressionStmt.java#newcode85 src/com/google/caja/parser/js/ExpressionStmt.java:85: // literal. On 2013/07/03 22:09:33, kpreid2 wrote: > Blank ...
12 years, 8 months ago (2013-07-04 01:32:23 UTC) #10
MikeSamuel
12 years, 8 months ago (2013-07-04 01:32:52 UTC) #11
https://code.google.com/p/google-caja/issues/detail?id=1669

> Our CSS selector filter deletes selectors it does not understand, which cannot
be virtualized accurately, or which are not yet properly virtualized
(particularly, attribute selectors).

> If this happens to the input to querySelector, then if no selectors remain, a
syntax error occurs because we pass the empty string to the browser
querySelector. If one or more selectors make it through, the client will receive
an unexpectedly shorter list. This behavior is overly inconsistent. Instead:
Sign in to reply to this message.

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