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

Loading a website with long script tasks freezes the UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx19
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web

      Description

      Using a WebView to display a website that contains some (poorly designed) scripts that take too long to complete, can block and freeze completely the JavaFX Application Thread.

      The attached test loads a simple local web page and after one second executes a simple script that takes 5 seconds to complete.

      The animation timer is added for the purpose of measuring the lapse between pulses, and when running the test it will show a value of 5 seconds (like 5002 ms), which is the lapse of time with the application totally unresponsive (the spinning wait cursor can be seen too).

      It can be reproduced with any JavaFX version.
        
       

        Attachments

          Activity

            People

            Assignee:
            jbhaskar Jay Bhaskar
            Reporter:
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: