diff options
author | David Fries <David@Fries.net> | 2014-07-11 10:59:44 -0500 |
---|---|---|
committer | David Fries <david@fries.net> | 2014-07-12 14:04:20 +0200 |
commit | 20558f56823e28c0c28043ed5ba06b29bebe348b (patch) | |
tree | 5cce12adfd6304c59e9d0cfb5dc0f06315019de6 /Source/JavaScriptCore/API/JSBase.cpp | |
parent | cb0f788597a946438bfd993850426f848ff39aa2 (diff) | |
download | qtwebkit-20558f56823e28c0c28043ed5ba06b29bebe348b.tar.gz |
QWebPage crashes on drag without QWidget view
QWebPage can be used without a widgets and has a documentation section
on how to do so, but if QWegPage hasn't been given a QWidget in setView
a drag operation will crash. To reproduce select a section of the web page
click and drag from within the selection and it will crash.
Add a check to avoid a NULL dereference, the existing code already has
a check for not having a QWidget set as the view.
DragClientQt::startDrag
m_chromeClient->platformPageClient() is NULL
Task-number: QTBUG-40204
Change-Id: I5739285696ab57c05ee59c10ae00a1cf652ff494
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/API/JSBase.cpp')
0 files changed, 0 insertions, 0 deletions