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

WebView can't alert from a timer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web
    • Introduced In Version:

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: