Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100775 Several data races around handlers of QDesktopServices::openUrl()
  3. QTBUG-100779

QObject::destroyed() is emitted too late for proper unregistering from QOpenUrlHandlerRegistry

    XMLWordPrintable

Details

    • Team Two Foundation Sprint 51
    • 37a25fce94 (qt/qtbase/dev) 37a25fce94 (qt/tqtc-qtbase/dev) 7a98858ff0 (qt/qtbase/6.3) b3d1ea8530 (qt/qtbase/6.2) b3d1ea8530 (qt/tqtc-qtbase/6.2) 7a98858ff0 (qt/tqtc-qtbase/6.3) 2b0105cdc1 (qt/tqtc-qtbase/5.15) b3d1ea8530 (qt/tqtc-qtbase/6.2.4)

    Description

      When a URL handler is destroyed, it is removed from the registry only by way of the destroyed() signal. Even if QTBUG-100778 is fixed, there's still a window where the handler's salient members have already been destroyed, and thus it cannot act as a handler anymore, but it hasn't been removed from the registry, yet, and thus can still be invoked by a call to openUrl().

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: