<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, davidedmundson, fvogt.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</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/D16888">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When a download is canceled, finishes, or is interrupted (e.g. loss of network connection) we finish the <tt style="background: #ebebeb; font-size: 13px;">KJob</tt> to remove it from notification area.<br />
However, when a job was interrupted and is then resumed, the download ID is reused by the browser and we only get sent updates for a job we no longer have.<br />
When we get a change event from <tt style="background: #ebebeb; font-size: 13px;">interrupted</tt> to <tt style="background: #ebebeb; font-size: 13px;">in_progress</tt> just pretend a new download was created and carry on as normal.</p>

<p>BUG: 401038</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Started a download, cut my network, waited for it to fail, resumed it: now got a download job in notification area, previously nothing would happen</li>
<li class="remarkup-list-item">Canceling and restarting the download still works fine</li>
<li class="remarkup-list-item">Starting a new download still works fine</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R856 Plasma Browser Integration</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16888">https://phabricator.kde.org/D16888</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>extension/extension.js</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, davidedmundson, fvogt<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>