When you write in Java "new Credentials()" it will be translated to JavaScript "new $wnd.Object". So JsInterop explicitly uses the top window referenced through GWT's special $wnd variable. If you now inject your HelloJS library into the GWT iframe using ScriptInjector then "new $wnd.Object instanceof Object" returns false as it checks the top window Object against the iframe Object.
So use ScriptInjector.fromString/Url().setWindow(ScriptInjector.TOP_WINDOW) for your Hello JS lib. Then it should work. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.