Changeset 56581 in webkit


Ignore:
Timestamp:
Mar 25, 2010 5:24:34 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-25 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled
https://bugs.webkit.org/show_bug.cgi?id=35251

Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent
QGraphicsWebView from referencing QWebPage after it was deleted.

  • Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::_q_pageDestroyed): (QGraphicsWebView::setPage):
  • Api/qgraphicswebview.h:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qgraphicswebview.cpp

    r56552 r56581  
    142142
    143143    void _q_updateMicroFocus();
     144    void _q_pageDestroyed();
    144145
    145146    QGraphicsWebView* q;
     
    264265    }
    265266#endif
     267}
     268
     269void QGraphicsWebViewPrivate::_q_pageDestroyed()
     270{
     271    page = 0;
     272    q->setPage(0);
    266273}
    267274
     
    782789    connect(d->page, SIGNAL(microFocusChanged()),
    783790            this, SLOT(_q_updateMicroFocus()));
     791    connect(d->page, SIGNAL(destroyed()),
     792            this, SLOT(_q_pageDestroyed()));
    784793}
    785794
  • trunk/WebKit/qt/Api/qgraphicswebview.h

    r56322 r56581  
    144144    Q_PRIVATE_SLOT(d, void _q_doLoadFinished(bool success))
    145145    Q_PRIVATE_SLOT(d, void _q_updateMicroFocus())
     146    Q_PRIVATE_SLOT(d, void _q_pageDestroyed())
    146147    // we don't want to change the moc based on USE() macro, so this function is here
    147148    // but will be empty if ACCLERATED_COMPOSITING is disabled
  • trunk/WebKit/qt/ChangeLog

    r56577 r56581  
     12010-03-25  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled
     6        https://bugs.webkit.org/show_bug.cgi?id=35251
     7
     8        Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent
     9        QGraphicsWebView from referencing QWebPage after it was deleted.       
     10
     11        * Api/qgraphicswebview.cpp:
     12        (QGraphicsWebViewPrivate::_q_pageDestroyed):
     13        (QGraphicsWebView::setPage):
     14        * Api/qgraphicswebview.h:
     15
    1162010-03-25  Kent Hansen  <kent.hansen@nokia.com>
    217
Note: See TracChangeset for help on using the changeset viewer.