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

Issue 6209089: Provide XHR as an alternative fetcher for ES5 sandboxed code (Closed)

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

Description

* Adds two possible fetchers to caja.js to load external scripts in ES5 * Enables some CSS tests in ES5 which were previously off * Adds tests for provided fetchers @4903

Patch Set 1 #

Total comments: 8

Patch Set 2 : Provide XHR as an alternative fetcher for ES5 sandboxed code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -35 lines) Patch
M src/com/google/caja/plugin/caja.js View 1 2 chunks +45 lines, -22 lines 0 comments Download
M src/com/google/caja/plugin/guest-manager.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/es53-test-cajajs-invocation.js View 1 2 chunks +29 lines, -11 lines 0 comments Download
A tests/com/google/caja/plugin/es53-test-external-script.js View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-guest.html View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 3
Jasvir
14 years, 2 months ago (2012-05-22 18:55:34 UTC) #1
ihab.awad
lgtm++ http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/caja.js#newcode96 src/com/google/caja/plugin/caja.js:96: 'fetch': proxyFetchMaker(undefined) We don't want to point by ...
14 years, 2 months ago (2012-05-22 21:57:31 UTC) #2
Jasvir
14 years, 1 month ago (2012-06-05 03:16:30 UTC) #3
http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/caja.js
File src/com/google/caja/plugin/caja.js (right):

http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/caja....
src/com/google/caja/plugin/caja.js:96: 'fetch': proxyFetchMaker(undefined)
That is what not providing a value does.  Closure forces me to pass undefined
explicitly.

On 2012/05/22 21:57:31, ihab.awad wrote:
> We don't want to point by default at the proxy server shipped with the Caja
> service?

http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/guest...
File src/com/google/caja/plugin/guest-manager.js (right):

http://codereview.appspot.com/6209089/diff/1/src/com/google/caja/plugin/guest...
src/com/google/caja/plugin/guest-manager.js:143: setTimeout(function() {
On 2012/05/22 21:57:31, ihab.awad wrote:
> There's a tab on the lhs of this line.

Done.

http://codereview.appspot.com/6209089/diff/1/tests/com/google/caja/plugin/es5...
File tests/com/google/caja/plugin/es53-test-cajajs-invocation.js (right):

http://codereview.appspot.com/6209089/diff/1/tests/com/google/caja/plugin/es5...
tests/com/google/caja/plugin/es53-test-cajajs-invocation.js:48: if (inES5Mode)
On 2012/05/22 21:57:31, ihab.awad wrote:
> Eek, please add curlies!

Done.

http://codereview.appspot.com/6209089/diff/1/tests/com/google/caja/plugin/es5...
tests/com/google/caja/plugin/es53-test-cajajs-invocation.js:347: //
registerTest('testUrCajoledHtml', function testUrlCajoledHtml() { });
Reverted.

On 2012/05/22 21:57:31, ihab.awad wrote:
> Spurious change
Sign in to reply to this message.

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