<table><tr><td style="">mtijink created this revision.<br />mtijink added a project: KDE PIM.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7056" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I think this fixes bug #378513. The bug occurred (during session restore) when the code tries to cast to a <tt style="background: #ebebeb; font-size: 13px;">WebFrameEngine</tt>, but since the main frame has already been deleted, this fails.</p>
<p>Using this code, the <tt style="background: #ebebeb; font-size: 13px;">MainWidget</tt> removes the main frame from the frame manager before it's deleted. I'm not sure this fully fixes the original problem, but I do not have crashes anymore with this diff. Note: I only tested it on the Applications/17.4 branch, since master required compiling lots of packages, so you may want to test it on master first.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>No crashes anymore for me. I could replicate the original bug by trying to restore from a session.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R201 Akregator</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_bug_378513</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7056" rel="noreferrer">https://phabricator.kde.org/D7056</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/frame/framemanager.cpp<br />
src/frame/framemanager.h<br />
src/mainwidget.cpp</div></div></div><br /><div><strong>To: </strong>mtijink, KDE PIM<br /><strong>Cc: </strong>dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>