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

shouldInterruptJavaScript is not called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.2.x
    • PySide
    • None
    • The system is linux debian 64bits using python 2.7.3 and webkit 4.8.
      Both pyside 1.1.1 and 1.1.2 are affected

    Description

      The bug is similar to this report that was supposed be fixed:
      http://srinikom.github.com/pyside-bz-archive/973.html

      To reproduce, use this code with pyside 1.1.1 or 1.1.2.
      System is linux debian 64bits using python 2.7.3 and webkit 4.8

      #!/usr/bin/env python2.7
       
      import sys
      from PySide import QtCore
      from PySide.QtGui import QApplication
      from PySide.QtWebKit import QWebPage
       
      class QWebPageHeadless(QWebPage):
          # FIXME: This is not working, the slot is not overriden!
          @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_())
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              ticapix Pierre Gr.
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes