Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8146211

WebView can't alert from a timer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u60, 9
    • javafx
    • web
    • Fix failed

        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.

              mbilla Murali Billa
              jtulach Jaroslav Tulach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: