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

WebView can't alert from a timer

    XMLWordPrintable

Details

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

    Backports

      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.

        Attachments

          Issue Links

            Activity

              People

                mbilla Murali Billa
                mbilla Murali Billa
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: