Closed Bug 824345 Opened 12 years ago Closed 12 years ago

Hide old downloads manager preferences when the panel is enabled

Categories

(Firefox :: Downloads Panel, defect, P1)

20 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 20

People

(Reporter: Virtual, Assigned: Paolo)

References

Details

(Keywords: nightly-community, regression)

Attachments

(1 file, 1 obsolete file)

- "Show the Downloads window when downloading a file" (browser.download.manager.showWhenStarting;true) is enabled in Options in General tab - "Downloads" button is hidden - "browser.download.useToolkitUI" is set by default as "false" Regression window (mozilla-inbound-win32-pgo) Good: https://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32-pgo/1356023013/ Bad: https://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32-pgo/1356033838/ Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=f042470c7ae8&tochange=487d0f89749b Probably triggered by: 6bcdc46945a6 Mike Conley β€” Bug 822244 - Use the Downloads View in Places if it's preffed on. r=mak.
Summary: Downloads window doesn't show after landing #822244 → Downloads window doesn't show after landing bug #822244
Do you have the new downloads view enabled? if so that's by design.
hmm, I don't know. How can I check it? But even if it's by design, I still see nothing, having "Show the Downloads window when downloading a file" (browser.download.manager.showWhenStarting;true) is enabled in Options in General tab.
yes, we should hide those 2 options when the new downloads panel is in use, confirming the file to do that. Btw, if you have set browser.library.useNewDownloadsView to true, then you are using the new view. Is this the case?
Status: UNCONFIRMED → NEW
Ever confirmed: true
http://mxr.mozilla.org/mozilla-central/source/browser/components/preferences/main.xul#120 and the corresponding in-content file. Luckily main.js has an init() function we can likely use to hide these options: http://mxr.mozilla.org/mozilla-central/source/browser/components/preferences/main.js#16
(In reply to Marco Bonardo [:mak] (intermittently avail. until 3 Jan) from comment #3) > Btw, if you have set browser.library.useNewDownloadsView to true, then you > are using the new view. Is this the case? I don't have this preference in about:config, so it's set on default (probably "false" I think)
(In reply to Virtual_ManPL [:Virtual] from comment #5) > (In reply to Marco Bonardo [:mak] (intermittently avail. until 3 Jan) from > comment #3) > > Btw, if you have set browser.library.useNewDownloadsView to true, then you > > are using the new view. Is this the case? > I don't have this preference in about:config, so it's set on default > (probably "false" I think) Hey Virtual_ManPL: The preference does not exist in about:config by default. If it doesn't exist, Nightly will assume you don't want to enable the new view. In order to try it, go to about:config, and add a new boolean. Name it browser.library.useNewDownloadsView and set it to true. -Mike
Thanks! Some test info: - "Show the Downloads window when downloading a file" (browser.download.manager.showWhenStarting;true) is enabled in Options in General tab - "Downloads" button is hidden - "browser.download.useToolkitUI" is set by default as "false" Test: Without "browser.library.useNewDownloadsView" = no Downloads info is shown With "browser.library.useNewDownloadsView" set to "false" = no Downloads info is shown With "browser.library.useNewDownloadsView" set to "true" = no Downloads info is shown So in every case you need to open manually Downloads (CTRL+J or by menu) to see the progress of downloading files, at least it's in my case and settings. Also, background of New Downloads View is completely white, isn't it a bug?
ok, so the above is (so far) expected when the panel feature is enabled, cause with it we have a notification in the main window. And if you remove the downloads button we consider that you don't want to be notified. In future we may evaluate changes but so far this is the direction. If you can't live without the old DM window popping up you should disable the feature through the browser.downloads.useToolkitUI (true) pref, and keep using the old DM. What we should do here is just hide the preferences when the new panel is in use.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Summary: Downloads window doesn't show after landing bug #822244 → Hide old downloads manager preferences when the panel is enabled
Attached patch The patch (obsolete) (deleted) β€” β€” Splinter Review
Took Javi's original patch from bug 697679, partially reverted in bug 748160, and updated it to use the preference for the Library view instead of the panel.
Assignee: mak77 → paolo.mozmail
Attachment #696024 - Flags: review?(mak77)
Attached patch Updated patch (deleted) β€” β€” Splinter Review
Updated after IRC discussion, since in the end we'll want a single preference to control whether the old or the new user interface is used, and the preference for the Library view will eventually be removed.
Attachment #696024 - Attachment is obsolete: true
Attachment #696024 - Flags: review?(mak77)
Attachment #696029 - Flags: review?(mak77)
Comment on attachment 696029 [details] [diff] [review] Updated patch Review of attachment 696029 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: browser/components/preferences/in-content/main.js @@ +31,5 @@ > > + setupDownloadsWindowOptions: function () > + { > + var showWhenDownloading = document.getElementById("showWhenDownloading"); > + var closeWhenDone = document.getElementById("closeWhenDone"); please use let in new code ::: browser/components/preferences/main.js @@ +33,5 @@ > > + setupDownloadsWindowOptions: function () > + { > + var showWhenDownloading = document.getElementById("showWhenDownloading"); > + var closeWhenDone = document.getElementById("closeWhenDone"); ditto
Attachment #696029 - Flags: review?(mak77) → review+
Severity: major → normal
Priority: -- → P1
OS: Windows 7 → All
Hardware: x86_64 → All
Target Milestone: --- → Firefox 20
Backed out for failing browser_library_downloads.js: https://hg.mozilla.org/integration/mozilla-inbound/rev/a17555ed859b
(In reply to Marco Bonardo [:mak] (intermittently avail. until 3 Jan) from comment #8) > ok, so the above is (so far) expected when the panel feature is enabled, > cause with it we have a notification in the main window. And if you remove > the downloads button we consider that you don't want to be notified. > > In future we may evaluate changes but so far this is the direction. > If you can't live without the old DM window popping up you should disable > the feature through the browser.downloads.useToolkitUI (true) pref, and keep > using the old DM. > > What we should do here is just hide the preferences when the new panel is in > use. Awww! Yep! Recently I reinstalled Nightly and I have completely forgotten about changing "browser.download.useToolkitUI" to "true", so Firefox will use old download manager. Happily I find this bug because of that. Thanks for pointing this out!
Thanks for landing this, Marco.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Verified using latest hourly Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121229 Firefox/20.0 Thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: