Closed Bug 1114617 Opened 10 years ago Closed 9 years ago

Remove nsIDownloadManagerUI from Firefox for Android

Categories

(Firefox for Android Graveyard :: Download Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 37

People

(Reporter: Paolo, Assigned: Paolo)

References

Details

Attachments

(1 file)

Attached patch Untested patchSplinter Review
From what I can tell, nsIDownloadManagerUI is not called anymore since bug 901360 landed.
Attachment #8540173 - Flags: review?(margaret.leibovic)
Comment on attachment 8540173 [details] [diff] [review]
Untested patch

Review of attachment 8540173 [details] [diff] [review]:
-----------------------------------------------------------------

I tested this locally, and it appears to work. However, I'm not familiar with the history of this file. How did it work before? What changed in bug 901360? r+ if you can help answer my questions :)
Attachment #8540173 - Flags: review?(margaret.leibovic) → review+
I don't think any code even supports calling nsIDownloadManagerUI anymore. Our impl is just dead code.
(In reply to :Margaret Leibovic from comment #1)
> I tested this locally, and it appears to work. However, I'm not familiar
> with the history of this file. How did it work before? What changed in bug
> 901360? r+ if you can help answer my questions :)

This interface was used like a callback by the old Download Manager service, and the "show" method was invoked when a new download started or the global Desktop notification was clicked:

http://mxr.mozilla.org/mozilla-central/source/toolkit/components/downloads/nsDownloadProxy.h#58
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/downloads/nsDownloadManager.cpp#2487

It used to be implemented by the old windowed user interface. The Desktop notification is obviously irrelevant to Android, and the new download notification is controlled by preferences, so I don't even know if it was called before or other notifications were actually used.
Thanks for the clarification!
https://hg.mozilla.org/mozilla-central/rev/917838e59201
Assignee: nobody → paolo.mozmail
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 37
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: