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

Issue 10205043: Support literal Unicode in string literals in ES5 (Closed)

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

Description

Test incoming guest source for embedded Unicode characters. If it does have these, we force a re-rendering from a parse tree, which turns any such characters inside string literals into escaped strings. If any such characters remain, we go ahead and fail as before

Patch Set 1 #

Patch Set 2 : Support literal Unicode in string literals in ES5 #

Total comments: 16

Patch Set 3 : Support literal Unicode in string literals in ES5 #

Total comments: 2

Patch Set 4 : Support literal Unicode in string literals in ES5 #

Total comments: 1

Patch Set 5 : Support literal Unicode in string literals in ES5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -43 lines) Patch
M src/com/google/caja/ses/atLeastFreeVarNames.js View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M src/com/google/caja/ses/hookupSES.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/com/google/caja/ses/hookupSESPlus.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/com/google/caja/ses/mitigateGotchas.js View 1 2 3 4 1 chunk +34 lines, -35 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 chunks +11 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-invocation.js View 1 2 3 4 2 chunks +52 lines, -2 lines 0 comments Download

Messages

Total messages: 23
ihab.awad
12 years, 9 months ago (2013-06-11 23:28:18 UTC) #1
ihab.awad
Test incoming guest source for embedded Unicode characters. If it does have these, we force ...
12 years, 9 months ago (2013-06-11 23:29:43 UTC) #2
kpreid_google
https://codereview.appspot.com/10205043/diff/3001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10205043/diff/3001/src/com/google/caja/ses/startSES.js#newcode181 src/com/google/caja/ses/startSES.js:181: * limited character set that SES should process; otherwise, ...
12 years, 9 months ago (2013-06-11 23:48:49 UTC) #3
MarkM
Before commenting on the specifics, I have a more general question. Why not do something ...
12 years, 9 months ago (2013-06-12 14:33:29 UTC) #4
ihab.awad
Interesting. So to recap: what I want to do is encode Unicode characters *inside string ...
12 years, 9 months ago (2013-06-12 14:42:23 UTC) #5
Mark S. Miller
I know I'm probably asking something obvious, but this whole Unicode area is something I ...
12 years, 9 months ago (2013-06-12 14:50:13 UTC) #6
ihab.awad
Ah I understand now. Right. Given input where [U] stands for an embedded Unicode character: ...
12 years, 9 months ago (2013-06-12 15:07:54 UTC) #7
Mark S. Miller
On Wed, Jun 12, 2013 at 8:07 AM, <ihab.awad@gmail.com> wrote: > Ah I understand now. ...
12 years, 9 months ago (2013-06-12 15:16:48 UTC) #8
ihab.awad
On 2013/06/12 15:16:48, Mark S. Miller wrote: > What about the escaping logic that's already ...
12 years, 9 months ago (2013-06-12 16:03:59 UTC) #9
Mark S. Miller
[+msamuel] Mike? Was this you? On Wed, Jun 12, 2013 at 9:04 AM, <ihab.awad@gmail.com> wrote: ...
12 years, 9 months ago (2013-06-12 16:06:04 UTC) #10
felix8a
On 2013/06/12 15:07:54, ihab.awad wrote: > Ah I understand now. Right. Given input where [U] ...
12 years, 9 months ago (2013-06-12 16:29:11 UTC) #11
ihab.awad
On 2013/06/12 16:29:11, felix8a wrote: > er, that isn't a syntax error. it's legal and ...
12 years, 9 months ago (2013-06-12 16:35:30 UTC) #12
ihab.awad
And actually -- On 2013/06/12 16:35:30, ihab.awad wrote: > 1. We'd need to do the ...
12 years, 9 months ago (2013-06-12 16:37:42 UTC) #13
ihab.awad
On 2013/06/12 16:37:42, ihab.awad wrote: > By that logic alone, atLeastFreeVarNames as currently written would ...
12 years, 9 months ago (2013-06-12 18:42:07 UTC) #14
MarkM
On 2013/06/12 18:42:07, ihab.awad wrote: > On 2013/06/12 16:37:42, ihab.awad wrote: > > By that ...
12 years, 8 months ago (2013-06-25 20:52:13 UTC) #15
ihab.awad
Test incoming guest source for embedded Unicode characters. If it does have these, we force ...
12 years, 8 months ago (2013-07-01 05:11:53 UTC) #16
ihab.awad
https://codereview.appspot.com/10205043/diff/3001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10205043/diff/3001/src/com/google/caja/ses/startSES.js#newcode181 src/com/google/caja/ses/startSES.js:181: * limited character set that SES should process; otherwise, ...
12 years, 8 months ago (2013-07-01 05:13:47 UTC) #17
kpreid_google
https://codereview.appspot.com/10205043/diff/20001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10205043/diff/20001/src/com/google/caja/ses/startSES.js#newcode934 src/com/google/caja/ses/startSES.js:934: if (limitSrcCharset(modSrc).error) { This condition feels too fragile: it ...
12 years, 8 months ago (2013-07-01 19:14:49 UTC) #18
ihab.awad
Test incoming guest source for embedded Unicode characters. If it does have these, we force ...
12 years, 8 months ago (2013-07-01 20:20:39 UTC) #19
ihab.awad
https://codereview.appspot.com/10205043/diff/20001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10205043/diff/20001/src/com/google/caja/ses/startSES.js#newcode934 src/com/google/caja/ses/startSES.js:934: if (limitSrcCharset(modSrc).error) { On 2013/07/01 19:14:49, kpreid_google wrote: > ...
12 years, 8 months ago (2013-07-01 20:23:21 UTC) #20
kpreid_google
LGTM https://codereview.appspot.com/10205043/diff/37001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10205043/diff/37001/src/com/google/caja/ses/startSES.js#newcode198 src/com/google/caja/ses/startSES.js:198: * feature parity with the ES5/3 runtime at ...
12 years, 8 months ago (2013-07-02 18:03:54 UTC) #21
ihab.awad
Test incoming guest source for embedded Unicode characters. If it does have these, we force ...
12 years, 8 months ago (2013-07-02 18:57:30 UTC) #22
ihab.awad
12 years, 8 months ago (2013-07-02 18:58:09 UTC) #23
@5468
Sign in to reply to this message.

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