Google Web Toolkit
Monday, August 3, 2026
Does GWT support CSP Trusted Types?
We're trying to implement Trusted Types (require-trusted-types-for 'script') in a GWT 2.13 application as part of CSP hardening.
We created a default Trusted Types policy, but when Trusted Types is enforced, the application fails during startup because the GWT-generated bootstrap code triggers TrustedScript/TrustedScriptURL violations.
Has anyone successfully implemented Trusted Types with GWT? Is there any official support or recommended approach for this?
Thanks in advance! --
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/1b60c2ba-afa2-4f3d-ad8c-251c403729adn%40googlegroups.com.
Tuesday, July 14, 2026
Re: Apache commons-text security issues
Hello,
note that commons-text 1.9 used in gwt-user is having security issues,
so please upgrade this library to newer version if possible. This jar is
used by net.sourceforge.htmlunit library.
Cheers,
Mirza
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/0df8389b-9106-4603-98c0-a650b2da9f3bn%40googlegroups.com.
Re: Apache commons-text security issues
Hello,
note that commons-text 1.9 used in gwt-user is having security issues,
so please upgrade this library to newer version if possible. This jar is
used by net.sourceforge.htmlunit library.
Cheers,
Mirza
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/bcfd0ff7-466c-41e0-a26e-c5b2aaa97710n%40googlegroups.com.
Apache commons-text security issues
Hello, note that commons-text 1.9 used in gwt-user is having security issues, so please upgrade this library to newer version if possible. This jar is used by net.sourceforge.htmlunit library. Cheers, Mirza -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/62b19755-f37d-4fd4-b583-39e5935b78dd%40digitech.cz.
Tuesday, July 7, 2026
Re: Elemental2 oddities
WebGLContextAttributes contextAttributes = Js.uncheckedCast(JsPropertyMap.of());
Thanks again Jens. Issue raised: https://github.com/google/closure-compiler/issues/4250
On Monday, 28 July 2025 at 6:55:23 pm UTC+10 Jens wrote:
Because it is only a dictionary (= a plain JS object)
In JS you simply do:
var canvas = document.getElementById('canvas');
var context = canvas.getContext('webgl', { antialias: false, stencil: true }); // 2nd argument is WebGLContextAttributes
var attributes = context.getContextAttributes();
Looks like it is again defined badly in closure-compiler externs. The generated elemental2 implementation should have a similar structure than for example elemental2 AddEventListenerOption. It is an interface with a static create() method which does exactly what you do in your solution.
See:
I think it should be @interface or @record instead of @constructor.
-- J.
Craig Mitchell schrieb am Montag, 28. Juli 2025 um 07:39:57 UTC+2:
I'm switching to use Elemental2, and it's fantastic. All the bindings I'll ever need. A big thank you to all that created it!
There are some strange things though. Like when setting up a WebGLRenderingContext, we need to pass WebGLContextAttributes.
However, doing:WebGLContextAttributes contextAttributes = new WebGLContextAttributes();
compiles fine, but at runtime throws:TypeError: $wnd.WebGLContextAttributes is not a constructor
I figured out I can do this instead:WebGLContextAttributes contextAttributes = Js.uncheckedCast(JsPropertyMap.of());
But why can't I just use its constructor? Am I doing something wrong?
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/126d9f3a-513b-4aeb-bd33-1adccce25605n%40googlegroups.com.
Re: Elemental2 WebRTC createOffer and createAnswer are incorrect
Following up on my own comment: A request for a new build with updated closure externs has been made: https://github.com/google/elemental2/issues/175
On Sunday, 20 July 2025 at 9:37:31 am UTC+10 Craig Mitchell wrote:
Now the good people at the closure-compiler have fixed the error ( https://github.com/google/closure-compiler/commit/5aadfa78592a2778ae4cac52613fb9238228b3e8 ), I see I can build a new version of Elemental2 locally ( https://github.com/google/elemental2?tab=readme-ov-file#build-gwt-compatible-maven-jar-files ).
It would be nice to get an offical Elemental2 build, and have it pushed to Maven. It looks like one hasn't been done for 9 months, is there any offical Elemental2 release schedule?
On Tuesday, 15 July 2025 at 7:37:27 pm UTC+10 Craig Mitchell wrote:
Thanks Jens. Bug raised: https://github.com/google/closure-compiler/issues/4249
On Tuesday, 15 July 2025 at 6:49:06 pm UTC+10 Jens wrote:
And this works great. But it would be nice to fix Elemental2.
You have to file an issue against closure-compiler because elemental2 takes their definition: https://github.com/google/closure-compiler/blob/15c5dd492cbb9dcdfd24d01f75b64e3e9b2291eb/externs/browser/w3c_rtc.js#L3586C23-L3586C44
-- J.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/4cb68587-ffe6-40e2-8153-6e0d56bb291bn%40googlegroups.com.
Monday, July 6, 2026
Learn more about our updated Terms of Service
|