[Webkit-unassigned] [Bug 30459] [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 16 14:31:34 PDT 2009


--- Comment #2 from Antonio Gomes (tonikitoo) <tonikitoo at webkit.org>  2009-10-16 14:31:34 PDT ---
Root of the problem: in QGWV's hoverMoveEvent method, a 'view' object (QWidget)
 is set to 'page' via page->setView(ev->widget())

void QGraphicsWebView::hoverMoveEvent(QGraphicsSceneHoverEvent* ev)
    if (d->interactive && d->page) {
        const bool accepted = ev->isAccepted();
        QMouseEvent me = QMouseEvent(QEvent::MouseMove,
                ev->pos().toPoint(), Qt::NoButton,
                Qt::NoButton, Qt::NoModifier);

This 'ev->widget()' object is tied to the 'QGraphicsView' that originated the
event (probably "QWidget* view->viewport()") not to the 'QGraphicsScene'

When we close the second window, the 'QGraphicsView' and its 'viewport' objects
are deleted. At this point, qwebpage::view() refers to a "dangling" pointer.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list