Bug 45392 - [Qt] QWebView::event gives seg fault while handling ContextMenu event
Summary: [Qt] QWebView::event gives seg fault while handling ContextMenu event
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P5 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-09-08 07:43 PDT by Priyaranjan
Modified: 2011-03-13 08:22 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priyaranjan 2010-09-08 07:43:47 PDT
Doing like this is giving crash/segmentation fault:

---------------------------------
QPoint qpoint (1,2);

QContextMenuEvent contextMenuEvent(QContextMenuEvent::Mouse, QPoint(1, 2));

QCoreApplication::sendEvent(controller->webWidget(), &contextMenuEvent);
------------------------------------

default handler i.e. QWebView::event is used for handling the event.

Seg Fault is happening with this call: QWebView::event(event)

Also reproduced on Symbian 10.1 platform.
Comment 1 Benjamin Poulain 2011-01-14 11:06:06 PST
Please follow this to report bugs on QtWebKit: http://trac.webkit.org/wiki/QtWebKitBugs

Could you please attach a test case?

Closing as invalid. I would not be surprised if the view does not even have a page yet. I will reopen when you attach the test case.
Comment 2 Andreas Kling 2011-03-13 08:22:08 PDT
Can't reproduce any crash on ToT (r80345), please re-open with a valid, self-contained test-case.