Details
-
Bug
-
Resolution: Fixed
-
P3
-
8u60, 9
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8160281 | 8u112 | Murali Billa | P3 | Closed | Fixed | b02 |
Description
Since 8_u60 my code in NetBeans
http://hg.netbeans.org/html4j/file/e390a06dbfac/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java#l303
that used to open alert/confirm dialogs is broken, if executed as
window.setTimeout(function() { alert('I will yield an error'); }, 1000);
As far as I can say this is a regression as the same code works in JDK7 and in earlier builds in JDK8.
Workarounds aren't easy, as the JavaScript code is supposed to block and wait until alert/confirm is dismissed.
http://hg.netbeans.org/html4j/file/e390a06dbfac/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java#l303
that used to open alert/confirm dialogs is broken, if executed as
window.setTimeout(function() { alert('I will yield an error'); }, 1000);
As far as I can say this is a regression as the same code works in JDK7 and in earlier builds in JDK8.
Workarounds aren't easy, as the JavaScript code is supposed to block and wait until alert/confirm is dismissed.
Attachments
Issue Links
- backported by
-
JDK-8160281 WebView can't alert from a timer
-
- Closed
-
- is cloned by
-
JDK-8160400 WebView can't alert from a timer
-
- Resolved
-
- relates to
-
JDK-8097469 Better error checking and docs if Printing or Dialogs called from Animation
-
- Resolved
-
-
JDK-8160388 Test Case Failure in CallBackTest
-
- Resolved
-
-
JDK-8090205 IllegalStateException while using com.sun.javafx.scene.web.Debugger
-
- Closed
-