Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49144

QWebPage's shouldInterruptJavaScript never called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.5.0
    • WebKit
    • None

      I use QWebView to open an webpage that has infinite loop javascript code like below:
      <body>
      <script type="text/javascript">
      while(1){}
      </script>
      </body>
      </html>

      In QT4.8, QWebView will show MessageBox after a while.
      But in QT5.5, the UI thread block forever, it seems shouldInterruptJavaScript never called by underying webkit.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            allan.jensen Allan Sandfeld Jensen
            tomnotcat tomnotcat
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes