Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
1.2.x
-
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
- depends on
-
QTBUG-48886 Regression[4-5] QWebPage.shouldInterruptJavaScript has no effect
- Closed
- is duplicated by
-
PYSIDE-241 shouldInterruptJavaScript is not called
- Closed