Open
Bug 1426487
Opened 8 years ago
Updated 1 year ago
Add method for adding download listeners without pausing and restarting the download
Categories
(Toolkit :: Application Update, defect, P2)
Toolkit
Application Update
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox58 | - | --- |
People
(Reporter: robert.strong.bugs, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
28.97 KB,
patch
|
molly
:
review-
|
Details | Diff | Splinter Review |
Currently it is necessary to stop the update download (e.g. pauseDownload) and restart it again with downloadUpdate to remove the background download listener and add the foreground download listener. This shouldn't be necessary and causes bugs like bug 1423571.
![]() |
Reporter | |
Comment 1•8 years ago
|
||
I don't think new methods will be needed. Pushed to oak so I can manually test things.
Comment 2•7 years ago
|
||
Robert, do we still need this for 58 as well as 59?
status-firefox58:
--- → ?
status-firefox59:
--- → affected
tracking-firefox58:
--- → blocking
tracking-firefox59:
--- → +
Flags: needinfo?(robert.strong.bugs)
![]() |
Reporter | |
Comment 3•7 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #2)
> Robert, do we still need this for 58 as well as 59?
No, bug 1423967 was identified as the bug that regressed / caused bug 1423571 and bug 1423967 was backed out of beta and aurora (dev edition) which is 58.
Flags: needinfo?(robert.strong.bugs)
![]() |
Reporter | |
Comment 4•7 years ago
|
||
Correction, Bug 1348087 was the actual cause which is stated as being backed out in bug 1423967
Comment 5•7 years ago
|
||
Yes, I saw that, but it looks like testing failed in https://bugzilla.mozilla.org/show_bug.cgi?id=1423571#c20
Flags: needinfo?(robert.strong.bugs)
![]() |
Reporter | |
Comment 6•7 years ago
|
||
I suspect that was cause by the backout not being included in the build that was tested that failed. Could you check if that is the case?
Flags: needinfo?(robert.strong.bugs) → needinfo?(lhenry)
Comment 7•7 years ago
|
||
Sure, I asked QA to confirm which version they were testing or to re-verify with a later build.
Flags: needinfo?(lhenry)
Comment 8•7 years ago
|
||
Gerry, can you follow up here to make sure all is well for 58 ? Thanks.
Flags: needinfo?(gchang)
Comment 9•7 years ago
|
||
According to comment #26 in bug 1423571. This should not be an issue in 58. It's no longer a blocking. Mark 58 won't fix.
![]() |
Reporter | |
Comment 10•7 years ago
|
||
I pushed this patch to oak. I've seen some problems with the TV test runs but think I have them fixed (fingers crossed).
Attachment #8938208 -
Attachment is obsolete: true
Attachment #8941666 -
Flags: review?(mhowell)
![]() |
Reporter | |
Comment 11•7 years ago
|
||
The TV test runs are passing.
![]() |
Reporter | |
Comment 12•7 years ago
|
||
I've also manually tested repeatedly opening the about window and restarting Firefox while the download is in progress.
Comment 13•7 years ago
|
||
Comment on attachment 8941666 [details] [diff] [review]
patch rev1
Review of attachment 8941666 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/mozapps/update/nsUpdateService.js
@@ +3595,5 @@
> + if (requestEntityID && requestEntityID != patchEntityID) {
> + this._patch.QueryInterface(Ci.nsIWritablePropertyBag);
> + this._patch.setProperty("entityID", requestEntityID);
> + Cc["@mozilla.org/updates/update-manager;1"].
> + getService(Ci.nsIUpdateManager).saveUpdates();
If the entityID has changed (and was previously set), then we should abort the request and start over without trying to resume, because that means that either the last modified time or the file size has changed since the last download attempt, so we're now downloading a different file than we were before.
The channel handled this for us by failing the request with NS_ERROR_ENTITY_CHANGED if the new entityID doesn't match the one passed to resumeAt, but since this patch no longer passes that parameter we should take care of it here.
@@ +3631,5 @@
>
> let currentTime = Date.now();
> if ((currentTime - this._lastProgressTimeMs) > DOWNLOAD_PROGRESS_INTERVAL) {
> + LOG("ChannelDownloader:onProgress - progress: " + progress +
> + "/" + maxProgress);
This change is actually addressing bug 1417254, which is fine since it's so small, just need to remember to also close that one out.
Attachment #8941666 -
Flags: review?(mhowell) → review-
Comment 14•7 years ago
|
||
Robert, Matt, since this update issue affects 59, do you think we should hold back 59.0b1? It is built and tested and was scheduled to be released today. We could try to land a fix, test it, and go to build for 59.0b2 by tomorrow or Thursday.
Flags: needinfo?(robert.strong.bugs)
Flags: needinfo?(mhowell)
Updated•7 years ago
|
![]() |
Reporter | |
Comment 15•7 years ago
|
||
I think it would be safer to backout the changes on beta as was done in bug 1423967.
Flags: needinfo?(robert.strong.bugs)
Updated•7 years ago
|
Comment hidden (off-topic) |
![]() |
Reporter | |
Updated•7 years ago
|
status-firefox60:
--- → affected
tracking-firefox59:
+ → ---
![]() |
||
Updated•7 years ago
|
Priority: -- → P1
Comment 18•7 years ago
|
||
Robert, is this still expected to make 60? If not should we at some point back bug 1348087 out of central until we get this sorted?
Flags: needinfo?(robert.strong.bugs)
Updated•7 years ago
|
tracking-firefox60:
--- → +
![]() |
Reporter | |
Comment 20•7 years ago
|
||
The backout happened on nightly in bug 1442407 and it was uplifted to beta so no need to block.
status-firefox58:
unaffected → ---
status-firefox59:
unaffected → ---
status-firefox60:
affected → ---
tracking-firefox60:
+ → ---
Flags: needinfo?(robert.strong.bugs)
![]() |
||
Updated•7 years ago
|
Assignee: robert.strong.bugs → nobody
Status: ASSIGNED → NEW
![]() |
||
Updated•7 years ago
|
Priority: P1 → P2
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•