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

QWebPage's shouldInterruptJavaScript never called

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes