Closed
Bug 602983
Opened 13 years ago
Closed 13 years ago
Add a way to check for updates from about:firefox
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(fennec2.0b2+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
fennec | 2.0b2+ | --- |
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
(Whiteboard: [strings])
Attachments
(2 files, 1 obsolete file)
8.48 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
74.74 KB,
image/png
|
Details |
This patch will check for updates and, if found, should start the update process - by showing a notification. Once started the normal 'mobile' process for updating used. I need to test this patch a bit before asking for review
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mark.finkle
Updated•13 years ago
|
tracking-fennec: --- → 2.0b2+
Comment 2•13 years ago
|
||
I like this very much! We still need some immediate feedback that pressing the button has done something, as presumably checking for updates takes a moment, so the notification won't come up immediately. Also for the case where there are no updates available. Is this located somewhere on the page near where we say what version you currently have? You know - I should just have a look.
Updated•13 years ago
|
Flags: in-litmus?(nhirata.bugzilla)
Updated•13 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 3•13 years ago
|
||
Same basic patch. Adds messages to let user know something is happening. This patch does not provide a full update/download experience. We should be letting the update notification system handle it.
Attachment #481924 -
Attachment is obsolete: true
Attachment #482563 -
Flags: review?(mbrubeck)
Assignee | ||
Comment 4•13 years ago
|
||
Shows the button location. Status messages occur in the same spot as the button. The patch will hide the button when we start checking for updates, replacing it with a "Checking for updates..." message. After the check is finished, the message changes to "No updates found" or "Update available" (as appropriate) - shows for 2 seconds, then reverts back to the button. If an update is available, the update system should kick in and the status bar should tell the user an update is available.
Comment 5•13 years ago
|
||
Without having seen it, this sounds right to me.
Comment 6•13 years ago
|
||
Comment on attachment 482563 [details] [diff] [review] patch >+++ b/chrome/content/about.xhtml >+ let Ci = Components.interfaces, Cc = Components.classes, Cu = Components.utils, Cr = Components.results; >+ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); >+ Components.utils.import("resource://gre/modules/Services.jsm"); s/Components.utils/Cu/ >+ startDownload: function() { >+ if (!this.update) >+ this.update = this.um.activeUpdate; >+ //this.update.QueryInterface(Ci.nsIWritablePropertyBag); >+ //this.update.setProperty("foregroundDownload", "true"); >+ >+ this.aus.pauseDownload(); >+ let state = this.aus.downloadUpdate(this.update, false); >+ if (state == "failed") >+ return; >+ >+ //this.aus.addDownloadListener(this); >+ } >+ }; Remove commented-out code. >+ onCheckComplete: function(aRequest, aUpdates, aUpdateCount) { >+ Updater.isChecking = false; >+ showUpdateMessage(aUpdates.length > 0); >+ >+ Updater.update = Updater.aus.selectUpdate(aUpdates, aUpdates.length); >+ if (!Updater.update) >+ return; >+ >+ if (!Updater.aus.canApplyUpdates) >+ return; If the Updater.update or canApplyUpdates checks fail, shouldn't we show an error message? (Or at least treat it as "no updates found" like we do with other errors now?) >+++ b/locales/en-US/chrome/about.dtd >+<!ENTITY aboutPage.checkForUpdates.checking "Looking for updatesâ¦"> Bugzilla has some issues with the UTF-8 character here. If we think this might cause problems elsewhere (like in l10n software), we could escape it as "…".
Attachment #482563 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 7•13 years ago
|
||
pushed with fixes to above comments: http://hg.mozilla.org/mobile-browser/rev/18c77a6b48bf
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
edited : https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=13647 Added : https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=13660
Flags: in-litmus?(nhirata.bugzilla) → in-litmus+
Assignee | ||
Updated•13 years ago
|
Whiteboard: [strings]
verified: Mozilla/5.0 (Android; Linux armv71; rv2.0b8pre) Gecko/20101014 Firefox/4.0b8pre Fennec/4.0b2pre
![]() |
||
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•