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

Issue 6060046: Support external scripts and stylesheets loading in ES5 (Closed)

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

Description

* Adds JSONP support to cajoling service to proxy a url and return it as a json object * Modifies caja.js to provide a default jsonp based fetcher for external urls using doc.write * Modifies html-sanitizer to make the sax parser restartable in some places (eg. at the end of a tag) * Modifies html-emitter to stop processing tokens until content is returned by fetcher and sandboxing the fetched content * Adds tests for external stylesheets and scripts @4879

Patch Set 1 #

Patch Set 2 : Support external scripts and stylesheets loading in ES5 #

Patch Set 3 : Support external scripts and stylesheets loading in ES5 #

Total comments: 10

Patch Set 4 : Support external scripts and stylesheets loading in ES5 #

Patch Set 5 : Support external scripts and stylesheets loading in ES5 #

Total comments: 31

Patch Set 6 : Support external scripts and stylesheets loading in ES5 #

Patch Set 7 : Support external scripts and stylesheets loading in ES5 #

Patch Set 8 : Support external scripts and stylesheets loading in ES5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -161 lines) Patch
M build.xml View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M src/com/google/caja/demos/playground/client/ui/PlaygroundView.java View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/com/google/caja/plugin/caja.js View 1 2 3 4 5 6 7 chunks +64 lines, -6 lines 0 comments Download
M src/com/google/caja/plugin/domado.js View 1 2 3 4 5 6 3 chunks +29 lines, -7 lines 0 comments Download
M src/com/google/caja/plugin/guest-manager.js View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 2 3 4 5 6 4 chunks +90 lines, -28 lines 0 comments Download
M src/com/google/caja/plugin/html-sanitizer.js View 1 2 3 4 5 6 4 chunks +176 lines, -108 lines 0 comments Download
M src/com/google/caja/plugin/ses-frame-group.js View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M src/com/google/caja/service/AbstractCajolingHandler.java View 1 2 3 4 5 6 1 chunk +16 lines, -2 lines 0 comments Download
M src/com/google/caja/service/CajolingService.java View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M src/com/google/caja/service/HtmlHandler.java View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
A src/com/google/caja/service/ProxyHandler.java View 1 2 3 4 5 6 1 chunk +102 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/GeneralBrowserTest.java View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/default-test-driver.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-communicate-1.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-communicate-2.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-css.css View 1 chunk +1 line, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-doc-update.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-doc-write.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-script-guest.html View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Jasvir
13 years, 6 months ago (2012-04-18 00:53:20 UTC) #1
metaweta
initial comments http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/caja.js#newcode43 src/com/google/caja/plugin/caja.js:43: callback(result); wrap this in a try...finally so ...
13 years, 6 months ago (2012-05-02 18:58:23 UTC) #2
metaweta
On 2012/05/02 18:58:23, metaweta wrote: > http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/html-emitter.js#newcode418 > src/com/google/caja/plugin/html-emitter.js:418: return srcIndex ? > attribs[srcIndex] : ...
13 years, 6 months ago (2012-05-02 19:04:20 UTC) #3
Jasvir
http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/caja.js#newcode43 src/com/google/caja/plugin/caja.js:43: callback(result); Replaced with a try-finally. On 2012/05/02 18:58:23, metaweta ...
13 years, 6 months ago (2012-05-03 18:01:42 UTC) #4
metaweta
lgtm http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/domado.js#newcode86 src/com/google/caja/plugin/domado.js:86: return; Since you're returning the result of this ...
13 years, 5 months ago (2012-05-07 23:05:18 UTC) #5
ihab.awad
Very clever! :) lgtm++ http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/caja.js#newcode46 src/com/google/caja/plugin/caja.js:46: window[rndName] = function (result) { ...
13 years, 5 months ago (2012-05-08 21:43:26 UTC) #6
Jasvir
http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6060046/diff/15001/src/com/google/caja/plugin/caja.js#newcode46 src/com/google/caja/plugin/caja.js:46: window[rndName] = function (result) { Not easily - the ...
13 years, 5 months ago (2012-05-15 22:15:35 UTC) #7
Jasvir
13 years, 5 months ago (2012-05-16 00:04:17 UTC) #8
http://codereview.appspot.com/6060046/diff/15001/tests/com/google/caja/plugin...
File tests/com/google/caja/plugin/GeneralBrowserTest.java (right):

http://codereview.appspot.com/6060046/diff/15001/tests/com/google/caja/plugin...
tests/com/google/caja/plugin/GeneralBrowserTest.java:205:
runTestCase("es53-test-external-script.html");
On 2012/05/08 21:43:26, ihab.awad wrote:
> For consistency, please name this es53-test-external-script-guest.html. (Yes I
> know es53-test-inline-script.html is not consistent -- we can change that now
or
> later.)

Done.
Sign in to reply to this message.

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