* 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
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
13 years, 6 months ago
(2012-05-02 19:04:20 UTC)
#3
On 2012/05/02 18:58:23, metaweta wrote:
>
http://codereview.appspot.com/6060046/diff/5001/src/com/google/caja/plugin/ht...
> src/com/google/caja/plugin/html-emitter.js:418: return srcIndex ?
> attribs[srcIndex] : undefined;
> Off by 1?
Ah, no: you're returning the value at the odd position in the key/value pair.
Never mind.
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
Issue 6060046: Support external scripts and stylesheets loading in ES5
(Closed)
Created 13 years, 6 months ago by Jasvir
Modified 13 years, 5 months ago
Reviewers: ihab.awad, metaweta
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 41