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

Issue 7381051: Add option to not mitigateGotchas for scripts that do not need it. (Closed)

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

Description

Adds a third option to the uri policy to give hosts the option to: * use an alternate, pre-gotcha-mitigated script for a given url * not perform any gotcha-mitigation for scripts like jquery which do not need it (This improves the render time for scripts that use jquery by ~500ms on MBP OS 10.8.2 Chrome M24) @5403

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add option to not mitigateGotchas for scripts that do not need it. #

Patch Set 3 : Add option to not mitigateGotchas for scripts that do not need it. #

Total comments: 24

Patch Set 4 : Add option to not mitigateGotchas for scripts that do not need it. #

Patch Set 5 : Add option to not mitigateGotchas for scripts that do not need it. #

Patch Set 6 : Add option to not mitigateGotchas for scripts that do not need it. #

Total comments: 8

Patch Set 7 : Add option to not mitigateGotchas for scripts that do not need it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -27 lines) Patch
M src/com/google/caja/demos/playground/client/ui/PlaygroundUI.java View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/com/google/caja/demos/playground/client/ui/PlaygroundUI.ui.xml View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M src/com/google/caja/demos/playground/client/ui/PlaygroundView.java View 1 2 3 4 5 6 5 chunks +17 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/domado.js View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M src/com/google/caja/plugin/es53-frame-group.js View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 2 3 4 5 6 4 chunks +39 lines, -6 lines 0 comments Download
M src/com/google/caja/plugin/ses-frame-group.js View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/com/google/caja/ses/mitigateGotchas.js View 1 2 3 4 5 6 1 chunk +32 lines, -6 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 6 5 chunks +26 lines, -7 lines 0 comments Download
M tests/com/google/caja/plugin/Es5BrowserTest.java View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-language-guest.html View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-mitigating-url-rewriter.js View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-precajole.js View 1 chunk +1 line, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-precajole-precajoled.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21
Jasvir Nagra
13 years ago (2013-02-22 16:13:58 UTC) #1
MarkM
https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/ses/startSES.js#newcode652 src/com/google/caja/ses/startSES.js:652: function compileExpr(src, doesNotNeedMitigation, opt_sourcePosition) { I don't like this ...
13 years ago (2013-02-23 17:36:17 UTC) #2
ihab.awad
lgtm https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java File src/com/google/caja/demos/playground/client/ui/PlaygroundView.java (right): https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java#newcode541 src/com/google/caja/demos/playground/client/ui/PlaygroundView.java:541: return null; This returns null unconditionally -- leftover ...
13 years ago (2013-02-28 07:26:51 UTC) #3
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-01 11:04:26 UTC) #4
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-01 14:37:01 UTC) #5
Jasvir Nagra
https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java File src/com/google/caja/demos/playground/client/ui/PlaygroundView.java (right): https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java#newcode541 src/com/google/caja/demos/playground/client/ui/PlaygroundView.java:541: return null; On 2013/02/28 07:26:52, ihab.awad wrote: > This ...
12 years, 10 months ago (2013-05-01 14:43:33 UTC) #6
ihab.awad
https://codereview.appspot.com/7381051/diff/13001/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java File src/com/google/caja/demos/playground/client/ui/PlaygroundView.java (right): https://codereview.appspot.com/7381051/diff/13001/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java#newcode541 src/com/google/caja/demos/playground/client/ui/PlaygroundView.java:541: // Skip rewriting jquery and jqueryui when loaded from ...
12 years, 10 months ago (2013-05-01 15:48:26 UTC) #7
ihab.awad
Assuming fixing the boolean sense of "mitigate" and not calling it a mitigating proxy -- ...
12 years, 10 months ago (2013-05-01 15:52:45 UTC) #8
MarkM
Not LGTM. Please don't commit this until the API is improved as discussed in my ...
12 years, 10 months ago (2013-05-01 16:59:03 UTC) #9
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-01 17:53:08 UTC) #10
Jasvir Nagra
https://codereview.appspot.com/7381051/diff/13001/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java File src/com/google/caja/demos/playground/client/ui/PlaygroundView.java (right): https://codereview.appspot.com/7381051/diff/13001/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java#newcode541 src/com/google/caja/demos/playground/client/ui/PlaygroundView.java:541: // Skip rewriting jquery and jqueryui when loaded from ...
12 years, 10 months ago (2013-05-01 17:53:15 UTC) #11
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-01 18:00:29 UTC) #12
Jasvir Nagra
https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/7381051/diff/1/src/com/google/caja/ses/startSES.js#newcode652 src/com/google/caja/ses/startSES.js:652: function compileExpr(src, doesNotNeedMitigation, opt_sourcePosition) { Corrected the double negative ...
12 years, 10 months ago (2013-05-01 18:00:38 UTC) #13
MarkM
Should note here what Jas and I chatted about. some mitigations must still be mandatory, ...
12 years, 10 months ago (2013-05-05 08:44:29 UTC) #14
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-06 10:52:28 UTC) #15
Jasvir Nagra
Ack. I've updated the CL such that parsing is not optional even though the rewriting ...
12 years, 10 months ago (2013-05-06 22:48:03 UTC) #16
MarkM
https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/ses/mitigateGotchas.js File src/com/google/caja/ses/mitigateGotchas.js (right): https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/ses/mitigateGotchas.js#newcode201 src/com/google/caja/ses/mitigateGotchas.js:201: return (options && opt in options) ? opt : ...
12 years, 10 months ago (2013-05-07 01:33:45 UTC) #17
ihab.awad
lgtm++ https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/plugin/html-emitter.js File src/com/google/caja/plugin/html-emitter.js (right): https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/plugin/html-emitter.js#newcode541 src/com/google/caja/plugin/html-emitter.js:541: parseProgram : true, Hm. Perhaps "parseProgram: false" here ...
12 years, 10 months ago (2013-05-07 02:28:00 UTC) #18
Jasvir Nagra
Adds a third option to the uri policy to give hosts the option to: * ...
12 years, 10 months ago (2013-05-08 16:40:45 UTC) #19
Jasvir Nagra
https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/ses/mitigateGotchas.js File src/com/google/caja/ses/mitigateGotchas.js (right): https://codereview.appspot.com/7381051/diff/41001/src/com/google/caja/ses/mitigateGotchas.js#newcode201 src/com/google/caja/ses/mitigateGotchas.js:201: return (options && opt in options) ? opt : ...
12 years, 10 months ago (2013-05-08 16:41:21 UTC) #20
MarkM
12 years, 10 months ago (2013-05-08 17:06:44 UTC) #21
Message was sent while issue was closed.
Lgtm on ses/*. Leaving rest to others.
Sign in to reply to this message.

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