[Webkit-unassigned] [Bug 64910] New: [Qt] C7 (Symbian^3) crash on tapping WebView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 17:34:12 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64910

           Summary: [Qt] C7 (Symbian^3) crash on tapping WebView
           Product: WebKit
           Version: 420+
          Platform: S60 Hardware
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: damian.jansen at nokia.com


Aleksi Hänninen has found a WebView crash on the C7 device. Unfortunately I have no C7 devices on hand to verify, but if the suggestion has merit it should be considered.
Original report is at http://bugreports.qt.nokia.com/browse/QTBUG-20427

The problem appears to be located in QGraphicsWebView::mousePressEvent - Aleksi has provided a potential fix to this issue. Quoted:

I found a workaround for the bug. In QGraphicsWebView , you shouldn't do it like this:

void QGraphicsWebView::mousePressEvent(QGraphicsSceneMouseEvent* ev)
{
if (d->page) { const bool accepted = ev->isAccepted(); d->page->event(ev); ev->setAccepted(accepted); }

if (!ev->isAccepted())
QGraphicsItem::mousePressEvent(ev);
}

Instead, you should manually create an event to be propagated into the underlying QWebPage, as follows:

const QPoint pos = ev->pos().toPoint();
QMouseEvent *event = new QMouseEvent(QEvent::MouseButtonPress, pos, ev->button(), ev->buttons(), ev->modifiers());
page()->event(event);

-- 
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