Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-241

shouldInterruptJavaScript is not called

    XMLWordPrintable

Details

    Description

      import sys
      import PySide
      from PySide import QtCore
      from PySide.QtGui import QApplication
      from PySide.QtWebKit import QWebPage

      print PySide._version_ ## PySide-1.2.2

      class QWebPageHeadless(QWebPage):
      @QtCore.Slot()
      def shouldInterruptJavaScript(self):
      print "Interrupt javascript request ignored..."
      return False

      if _name_ == "_main_":
      app = QApplication(sys.argv)
      page = QWebPageHeadless()
      page.mainFrame().setHtml('<script>while(1);</script>')
      sys.exit(app.exec_())

      shouldInterruptJavaScript not fired - i see javascript prompt - "javascript problem .... YES/NO"

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              koshak01 Petr Elagin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes