Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40204

QWebPage crashes on drag without QWidget view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.2.1
    • WebKit
    • None
    • Linux xcb
    • 20558f56823e28c0c28043ed5ba06b29bebe348b

    Description

      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

      I have a fix that will be submitted to codereview shortly and I'll add the link in a comment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            david@fries.net David Fries
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes