Closed
Bug 415820
Opened 16 years ago
Closed 6 years ago
Addons Manager: Disable the "Find updates" button in Extensions during offline mode
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: tchung, Assigned: aryx)
References
Details
Attachments
(2 files)
48.59 KB,
image/png
|
Details | |
9.65 KB,
patch
|
Unfocused
:
review-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3) Gecko/2008020418 Firefox/3.0b3 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3) Gecko/2008020418 Firefox/3.0b3 When in offline mode, the Find Updates button should be disabled and greyed out in Addons > Extensions pane. The other tabs are this way, so this should reflect consistency Reproducible: Always Steps to Reproduce: 1. Install Fx3 beta 3 2. switch to work offline mode 3. open Addons manager > Extensions 4. Verify Find updates button should be disabled and grayed out. ** Screenshot Actual Results: Disabled Find Updates buton in offline mode Expected Results: Find updates button is enabled.
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
It is disabled on the plugins pane because you cannot search for updates for the plugins. It shouldn't be disabled on the themes page, unless the only theme is the default one, which we don't search for updates for. For extensions I suspect the reasoning was that it would be confusing to have a disabled button with no idea of why it is disabled, clicking it should display a notification about why it doesn't work. Then again the state of it is all getting pretty confusing.
Reporter | ||
Comment 3•16 years ago
|
||
Clicking the button on extensions, during offline mode, drops down a "No Updates found." but yeah, its already confusing at this point.
Comment 4•16 years ago
|
||
and if in offline mode the notification provides the option to go online which I think is the best behavior when in offline mode. We might try to educate users as to why it is disabled but this hasn't been an issue of any significance.
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 5•13 years ago
|
||
Dave, with the rewrite nothing has been changed. We now even have the update check enabled for all types of add-ons. It issue has only been moved from the button into the AOM tools dropdown.
Assignee | ||
Comment 6•12 years ago
|
||
Assignee: nobody → archaeopteryx
Status: NEW → ASSIGNED
Attachment #670736 -
Flags: review?(bmcbride)
Comment 7•12 years ago
|
||
Comment on attachment 670736 [details] [diff] [review] Patch: Disable network dependent UI in Add-ons Manager if application is offline, v1 Review of attachment 670736 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, could really do with a browser-chrome test though. Doesn't need to be much - just check the notification is visible when running cmd_findAllUpdates/cmd_findItemUpdates in offline mode. And modify browser_dragdrop.js. ::: toolkit/locales/en-US/chrome/mozapps/extensions/extensions.dtd @@ +64,5 @@ > <!ENTITY updates.updating.label "Updating add-ons"> > <!ENTITY updates.installed.label "Your add-ons have been updated."> > <!ENTITY updates.downloaded.label "Your add-on updates have been downloaded."> > <!ENTITY updates.restart.label "Restart now to complete installation"> > +<!ENTITY updates.offline.label "You are currently offline. To check for add-on updates, you have to be online."> Think we should re-use the terminology the add-on update dialog uses for this, which is to say the "<app> is working offline"/"<app> needs to go online", rather than the user/their computer is offline. So something like: "&brandShortName; needs to go online to be able to check for add-on updates." ::: toolkit/mozapps/extensions/content/extensions.js @@ +79,5 @@ > document.removeEventListener("load", initialize, true); > + window.addEventListener("offline", gViewController.onOfflineChange, false); > + window.addEventListener("online", gViewController.onOfflineChange, false); > + if (Services.io.offline) { > + gViewController.onOfflineChange; Nit: No need for { } brackets when the contents are a single line. @@ +647,5 @@ > event.initEvent("ViewChanged", true, true); > this.currentViewObj.node.dispatchEvent(event); > }, > + > + onOfflineChange: function gVC_onOfflineChange() { Nit: Added trailing whitespace in the line above. @@ +3292,5 @@ > > // Convert every dropped item into a url > for (var i = 0; i < dataTransfer.mozItemCount; i++) { > var url = dataTransfer.mozGetDataAt("text/uri-list", i); > + if (url && !Services.io.offline) { Hmm, yea, I guess this makes sense. Pity there's no nice way to provide any feedback here :\
Attachment #670736 -
Flags: review?(bmcbride) → review-
Comment 8•6 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•