Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278335 | jfx17.0.2 | Johan Vos | P3 | Resolved | Fixed | |
JDK-8278000 | 8u331 | Kevin Rushforth | P3 | Resolved | Fixed | b01 |
JDK-8278331 | jfx11.0.14 | Johan Vos | P3 | Resolved | Fixed |
Also, trying to run a script that invokes such functionality, like the one in the attached sample, fails with:
Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: ReferenceError: Can't find variable: IntersectionObserver
at javafx.web@18-ea/com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:160)
at javafx.web@18-ea/com.sun.webkit.WebPage.twkExecuteScript(Native Method)
at javafx.web@18-ea/com.sun.webkit.WebPage.executeScript(WebPage.java:1562)
at javafx.web@18-ea/javafx.scene.web.WebEngine.executeScript(WebEngine.java:985)
at WebTestApp.lambda$start$0(WebTestApp.java:19)
This can be reproduced with any JavaFX version (11 to head).
In WebKit, the Intersection Observer feature is marked as experimental and not enabled for WebKitLegacy:
https://github.com/openjdk/jfx/blob/master/modules/javafx.web/src/main/native/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml#L434
with a comment that says:
# FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well.
In fact, enabling such feature works, so maybe what could be already done?
- backported by
-
JDK-8278000 JSException: ReferenceError: Can't find variable: IntersectionObserver
- Resolved
-
JDK-8278331 JSException: ReferenceError: Can't find variable: IntersectionObserver
- Resolved
-
JDK-8278335 JSException: ReferenceError: Can't find variable: IntersectionObserver
- Resolved
- duplicates
-
JDK-8273558 WebView is unresponsive when loading https://blogs.oracle.com/
- Closed
- relates to
-
JDK-8273558 WebView is unresponsive when loading https://blogs.oracle.com/
- Closed
- links to
-
Commit openjdk/jfx11u/04f5bc98
-
Commit openjdk/jfx17u/25abe09e
-
Commit openjdk/jfx/b257647e
-
Review openjdk/jfx11u/65
-
Review openjdk/jfx17u/24
-
Review openjdk/jfx/664