PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 479 - Using QWebFrame.evaluateJavaScript results in RuntimeError
: Using QWebFrame.evaluateJavaScript results in RuntimeError
Status: CLOSED WORKSFORME
Product: PySide
Classification: Unclassified
Component: QtWebKit
: 0.4.2
: All Linux
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-20 19:49 EET by yyyy12
Modified: 2011-01-06 16:25 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yyyy12 2010-11-20 19:49:22 EET
Using the 0.4.2 Ubuntu PPA the following example doesn't run (works fine with
PyQt):

import sys
from PySide import QtCore
from PySide import QtGui
from PySide import QtWebKit

app = QtGui.QApplication(sys.argv)
web = QtWebKit.QWebView()
web.load(QtCore.QUrl("http://google.com"))
web.show()
web.page().mainFrame().evaluateJavaScript("alert('test')")
sys.exit(app.exec_())


Error message:

Traceback (most recent call last):
  File "script.py", line 10, in <module>
    web.page().mainFrame().evaluateJavaScript("alert('test')")
RuntimeError: Internal C++ object already deleted.
Comment 1 Matti Airas 2010-11-23 06:19:47 EET
Acknowledging the bug and keeping P3 priority. This will be fixed during the
upcoming sprints.
Comment 2 renato filho 2010-12-28 12:13:03 EET
works on ubuntu maverick with PySide HEAD.
Comment 3 Hugo Parente Lima 2010-12-28 12:15:42 EET
Works for me with PySide GIT HEAD pre 1.0.0~beta3.

Probably this was fixed in the same commit that fixed the bug 354.
Comment 4 renato filho 2011-01-06 16:25:21 EET
released on beta3