Community
Participate
Working Groups
Hi all, I have an SWT application, which initializes a browser and injects some Java functions into WebView, but recently I noticed that the startup was broken in Linux, the web function cannot be registered into WebView. The function register return no error, but the WebView got nothing. Thus a blank screen is shown. I cannot conceive a minimal reproducible sample code, is there any experience to trace down this bug? This bug can be reproduced in Ubuntu 20.04(X11) and 21.10(Wayland).
Most likely duplicate of bug 577390, but I wonder if you have another problem because of Wayland. Can you please try with X11? Which exact Eclipse / SWT / GTK3 versions do you have?
Sometimes I got the following log: ``` 21/11/30 11:52:20.252 WARN: [FROM WEB UI] ReferenceError: Can't find variable: javaEventCenter 21/11/30 11:52:20.253 WARN: [FROM WEB UI] error=ReferenceError: Can't find variable: javaEventCenter, source=file:///home/lei/webui/main-window/index.html, name=ReferenceError, message=Can't find variable: javaEventCenter ```
> Which exact Eclipse / SWT / GTK3 versions do you have? SWT I20211128-1800 (Latest build) and 4.15 OS is Linux
> Most likely duplicate of bug 577390, but I wonder if you have another problem because of Wayland. Can you please try with X11? I've tried X11(Ubuntu 20.04 default) with SWT Browser, still a blank screen.
I have a similar sympathy as of https://bugs.eclipse.org/bugs/show_bug.cgi?id=573616
Created attachment 287599 [details] TestComposite.java
Created attachment 287600 [details] test.html
Created attachment 287601 [details] TestCompositeRunResult.jpg
(In reply to X L from comment #5) > I have a similar sympathy as of > https://bugs.eclipse.org/bugs/show_bug.cgi?id=573616 Yep => this is a duplicate. *** This bug has been marked as a duplicate of bug 573616 ***