Friday, January 17, 2014

GWT and CAJA

Hi

Not sure if I have come to the right place.. but here I go :

I want to embed a GWT into a Google Document. For a normal jquery webpage everything works fine, but when I embed even the smallest GWT app, it does not show up. 

Now running a webapp in a Google Document, the javascript and HTML is CAJA-sanitized, I understand from what I read here : https://developers.google.com/apps-script/guides/html/restrictions
Then there is a SANDBOX mode you can set to  NATIVE or EMULATED. I tried both.

You can use the setSandboxMode() method to choose between two versions of Caja: NATIVE mode imposes fewer restrictions than EMULATED mode and generally runs faster. By contrast, EMULATED mode is more likely to work in older browsers that do not support ECMAScript 5 strict mode, most notably Internet Explorer 9. (Very old browsers, including Internet Explorer 8 and below, are usually incompatible with the HTML service.)

Anyway, nothing shows up, and from the logs below, I think this is because the initial startup action

RootPanel rootPanel = RootPanel.get("myApp");

fails to execute due to not safe :
Object [object Object] has no method 'replace'

It would be great if I could reuse part of my application widgets for embedding into the sidebar ....

Can anybody shed some light ??

thx

Koen



Problem ignored by configuration (Unsafe spec violation): Array.prototype.push does not throw on a frozen array ses-single-frame.opt.js?debug=1:43
Problem ignored by configuration (Unsafe spec violation): Extending an array can modify read-only array length ses-single-frame.opt.js?debug=1:43
Problem ignored by configuration (Unsafe spec violation): SyntaxErrors aren't always early ses-single-frame.opt.js?debug=1:43
Problem ignored by configuration (Unsafe spec violation): Array.prototype.unshift ignores sealing ses-single-frame.opt.js?debug=1:43
Problem ignored by configuration (Unsafe spec violation): Array.prototype.splice ignores sealing ses-single-frame.opt.js?debug=1:43
Problem ignored by configuration (Unsafe spec violation): Array.prototype.shift ignores sealing ses-single-frame.opt.js?debug=1:43
Repaired: Non-deletable RegExp statics are a global communication channel ses-single-frame.opt.js?debug=1:43
Repaired: Date.prototype is a global communication channel ses-single-frame.opt.js?debug=1:43
Not repaired: Eval breaks masking of named functions in non-strict code ses-single-frame.opt.js?debug=1:43
Repaired: Array.prototype.push ignores sealing ses-single-frame.opt.js?debug=1:43
Repair skipped: Array.prototype.push does not throw on a frozen array ses-single-frame.opt.js?debug=1:43
Repaired: Array.prototype.push ignores frozen ses-single-frame.opt.js?debug=1:43
Repaired: Freezing an array does not make .length immutable ses-single-frame.opt.js?debug=1:43
Not repaired: Extending an array can modify read-only array length ses-single-frame.opt.js?debug=1:43
Not repaired: [[ThrowTypeError]] has normal function properties ses-single-frame.opt.js?debug=1:43
Not repaired: SyntaxErrors aren't always early ses-single-frame.opt.js?debug=1:43
Repaired unsafely: Array.prototype.unshift ignores sealing ses-single-frame.opt.js?debug=1:43
Repaired: Array.prototype.unshift ignores freezing ses-single-frame.opt.js?debug=1:43
Repaired unsafely: Array.prototype.splice ignores sealing ses-single-frame.opt.js?debug=1:43
Repaired: Array.prototype.splice ignores freezing ses-single-frame.opt.js?debug=1:43
Repaired unsafely: Array.prototype.shift ignores sealing ses-single-frame.opt.js?debug=1:43
Repaired: Array.prototype.shift ignores freezing ses-single-frame.opt.js?debug=1:43
Repaired: Array methods as functions operate on global object ses-single-frame.opt.js?debug=1:43
Max Severity: Safe spec violation(1). ses-single-frame.opt.js?debug=1:43
Max Severity: Safe spec violation(1). ses-single-frame.opt.js?debug=1:43

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment