<table><tr><td style="">davidk updated this revision to Diff 25669.<br />davidk added a comment.
</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/D9885" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Unfortunately i can't reproduce the crash (with QT 5.10.0).</p>

<p>But it may be related to the redirection to localhost, because i don't return a valid http response to the webview.<br />
Instead, i close the connection after recieving the request. I added a line to cancel the page load, after recieving<br />
the request on the socket. I hope this fixes the problem.</p>

<p>I wonder why the change breaks kio-gdrive but not the other applications i tried. Maybe it's related to the nested QEventLoop?</p>

<p>Anyways, would you mind trying it again?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R477 KGAPI Library</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D9885?vs=25575&id=25669" rel="noreferrer">https://phabricator.kde.org/D9885?vs=25575&id=25669</a></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9885" rel="noreferrer">https://phabricator.kde.org/D9885</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/private/newtokensfetchjob.cpp<br />
src/core/private/newtokensfetchjob_p.h<br />
src/core/ui/authwidget.cpp<br />
src/core/ui/authwidget_p.cpp<br />
src/core/ui/authwidget_p.h</div></div></div><br /><div><strong>To: </strong>davidk, mlaurent, dvratil, KDE PIM<br /><strong>Cc: </strong>dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>