diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-05-06 19:33:45 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-07 18:54:59 +0200 |
commit | 388a71d66f31df999dc9259d4eb156c497ad5247 (patch) | |
tree | 4fe335e569bdc43c12821587f07265f79cca0c58 /src/core/qrc_protocol_handler_qt.h | |
parent | f5ad05b1a5c878a943e82109f60526c8b909a1a7 (diff) | |
download | qtwebengine-388a71d66f31df999dc9259d4eb156c497ad5247.tar.gz |
Properly cleanup the old page when attaching a new one
This patch fixes two issues:
- The RWHV delegate of the old page would not be detached from the view
when attaching a new page to that view. Call reattachRWHV as we do on
the new page to make sure that the delegate gets unparented from the
view.
- QtWebKit documents that a page having the view as its QObject parent
should be deleted when setPage is called with a new page. This would
cause QupZilla to leak the page when opening a new window through a
link.
This also adds a workaround to avoid a crash when unparenting the
delegate where QOpenGLWidget would try to call paintGL without a valid
QSurface.
Change-Id: Icd2659f441d2220c26dc175d66424e6c26125861
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/qrc_protocol_handler_qt.h')
0 files changed, 0 insertions, 0 deletions