WebView missing resource

Scott Palmer swpalmer at gmail.com
Mon Jan 24 16:46:48 UTC 2022


This one might cover some of the issues: https://bugs.openjdk.java.net/browse/JDK-8088781
but it doesn’t look like anyone is paying attention to it.. some of the issues in that seem to be gone now.

In general I’m finding a lot of rendering glitches. Odd clipping, odd scaling, odd coordinates on polygons or borders.  Pages that scale and shift drastically simply by resizing the WebView by a single pixel.

I’m just using public web pages, so digging into what the page is actually doing is beyond what I have the time or resources to investigate, so the report will be rather vague.  Having a bug report depend on a public webpage that may change before somebody gets around to looking into it also is less than ideal.  I will give an example and attach screenshots just to capture what I’m seeing today.

I’ve filed: 

https://bugs.openjdk.java.net/browse/JDK-8280529


Regards,

Scott

> On Jan 24, 2022, at 8:28 AM, Kevin Rushforth <kevin.rushforth at oracle.com> wrote:
> 
> This is a bug in WebView. I ran into something similar a while back, but wasn't able to reproduce it, and didn't file a bug at that time. In looking at it, there are two problems. First, the getLocalizedProperty method should catch MissingResourceException and log a warning rather than letting the exception propagate. Second, there are a few missing property strings that should be added. I'll file both bugs.
> 
> If you notice other issues, please file bugs for them (if not already filed).
> 
> Thanks.
> 
> -- Kevin
> 
> 
> On 1/22/2022 8:10 PM, Scott Palmer wrote:
>> Is this an issue with WebView, my code, both?
>> 
>> Exception in thread "JavaFX Application Thread" java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key blockedPluginByContentSecurityPolicyText
>> 	at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564)
>> 	at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521)
>> 	at javafx.web/com.sun.webkit.LocalizedStrings.getLocalizedProperty(LocalizedStrings.java:45)
>> 	at javafx.web/com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
>> 	at javafx.web/com.sun.webkit.Timer.fireTimerEvent(Timer.java:84)
>> 	at javafx.web/com.sun.webkit.Timer.notifyTick(Timer.java:65)
>> 	at javafx.web/javafx.scene.web.WebEngine$PulseTimer.lambda$static$0(WebEngine.java:1205)
>> 	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
>> 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
>> 	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
>> 	at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
>> 
>> I’m just testing out some WebView things in a new modular app on Java 17.0.1 (Azul’s Zulu build with JavaFX included).  Noticing a lot of issues actually.. I’ll have to search the bug tracker to see if they are known.
>> 
>> Regards,
>> 
>> Scott
> 



More information about the openjfx-dev mailing list