Re: [Caja] Taming Questions

2012-10-18 Thread ihab . awad
Ok thanks -- look forward to hearing more. -- I On Wed, Oct 17, 2012 at 10:19 PM, Doug Koellmer doug...@gmail.com wrote: Thanks for the leads...it's good that I can do it all in whenReady. I double-checked and everything seems to be on the same window. I'm doing this in js native methods in

[Caja] Re: Issue 1565 in google-caja: Add better console messages when dynamic scripts are stripped or fail silently

2012-10-18 Thread google-caja
Comment #2 on issue 1565 by jas...@gmail.com: Add better console messages when dynamic scripts are stripped or fail silently http://code.google.com/p/google-caja/issues/detail?id=1565 Scripts added via the DOM api executes in all supported browsers ie.

[Caja] Re: Issue 1565 in google-caja: Add better console messages when dynamic scripts are stripped or fail silently

2012-10-18 Thread google-caja
Comment #3 on issue 1565 by metaw...@gmail.com: Add better console messages when dynamic scripts are stripped or fail silently http://code.google.com/p/google-caja/issues/detail?id=1565 Oh, right---it's only script blocks with text content that don't run, not script blocks with a src tag.

Re: [Caja] Taming Questions

2012-10-18 Thread Doug Koellmer
Ok, here's a simple snippet that reproduces that issue I'm having...thanks for looking at it.private static native void native_startUp() /*-{ $wnd.caja.initialize ({ cajaServer: '/r.js/caja/1/', resources: '/r.js/caja/1/', debug: true }); $wnd.caja.whenReady (

Re: [Caja] Taming Questions

2012-10-18 Thread ihab . awad
Hi Doug, Can you try, in the first ever native function called by your GWT app, to first call, before doing anything else: $wnd.caja.initFeralFrame(window); See the similar change to a GWT program in our own codebase:

[Caja] Caja as solution for displaying html email?

2012-10-18 Thread Dom Ramirez
I just started looking through the documentation, but do you think Caja would be a secure option for displaying html from incoming emails? This would be for a company-internal, web-based email client.

[Caja] Re: [nodejs] Compiling JS for Safe vm.runInNewContext()

2012-10-18 Thread Tristan Slominski
Hey Mark, Do you have more guidance on how to bootstrap SES in Node.js? I've tried requiring the initSES file (as a module), but it' keeps on not finding Function for some reason. var ses = require('./initSES-minified.js'); TypeError: Cannot read property 'prototype' of undefined at

Re: [Caja] Caja as solution for displaying html email?

2012-10-18 Thread ๏̯͡๏ Jasvir Nagra
Do you want to preserve javascript functionality in the emails you display? If so, absolutely - that's the sort of thing we're designed for. If you want to only display html, caja will do the job but it's a bit of an overkill. We have a js html sanitizer which will render safely html (and css)

Re: [Caja] Re: [nodejs] Compiling JS for Safe vm.runInNewContext()

2012-10-18 Thread ๏̯͡๏ Jasvir Nagra
hi Tristan, We haven't tried running cajajs on node (as you point out, we're currently geared up to be very browser specific) but we can try to help you debug this since it means getting caja up and running on node. I looked into this briefly and it appears that declaring a var in node creates a

Re: [Caja] Taming Questions

2012-10-18 Thread Doug Koellmer
Yup that worked! Thanks!

Re: [Caja] Taming Questions

2012-10-18 Thread ihab . awad
Awesome, good luck!! -- I On Thu, Oct 18, 2012 at 3:21 PM, Doug Koellmer doug...@gmail.com wrote: Yup that worked! Thanks! -- Ihab A.B. Awad, Palo Alto, CA

[Caja] Issue 1566 in google-caja: JQueryTest output causes spurious main test path failures

2012-10-18 Thread google-caja
Status: New Owner: metaw...@gmail.com Labels: Type-Defect Priority-Medium New issue 1566 by kpreid.switchb.org: JQueryTest output causes spurious main test path failures http://code.google.com/p/google-caja/issues/detail?id=1566 What steps will reproduce the problem? 1. Introduce a failure

[Caja] Re: Issue 1566 in google-caja: JQueryTest output causes spurious main test path failures

2012-10-18 Thread google-caja
Updates: Owner: --- Comment #1 on issue 1566 by metaw...@gmail.com: JQueryTest output causes spurious main test path failures http://code.google.com/p/google-caja/issues/detail?id=1566 Could someone who actually understands the ant/junit test framework take this instead?

[Caja] Re: Issue 1566 in google-caja: JQueryTest output causes spurious main test path failures

2012-10-18 Thread google-caja
Updates: Owner: felix8a Comment #2 on issue 1566 by felix8a: JQueryTest output causes spurious main test path failures http://code.google.com/p/google-caja/issues/detail?id=1566 (No comment was entered for this change.)

[Caja] exempt jquerytest (issue 6740049)

2012-10-18 Thread felix8a
Reviewers: metaweta, Description: 1. ant jquerytest currently always says BUILD SUCCESSFUL. This makes ant complain if any of the tests fail. 2. jquerytest failures currently infect ant runtests. This excludes jquerytest from the test summary report. Please review this at

[Caja] Re: exempt jquerytest (issue 6740049)

2012-10-18 Thread metaweta
lgtm https://codereview.appspot.com/6740049/

[Caja] [google-caja] r5102 committed - exempt jquerytest...

2012-10-18 Thread google-caja
Revision: 5102 Author: feli...@gmail.com Date: Thu Oct 18 22:16:18 2012 Log: exempt jquerytest http://codereview.appspot.com/6740049 1. ant jquerytest currently always says BUILD SUCCESSFUL. This makes ant complain if any of the tests fail. 2. jquerytest failures currently infect ant

[Caja] Re: Issue 1566 in google-caja: JQueryTest output causes spurious main test path failures

2012-10-18 Thread google-caja
Updates: Status: Fixed Comment #3 on issue 1566 by felix8a: JQueryTest output causes spurious main test path failures http://code.google.com/p/google-caja/issues/detail?id=1566 @r5102