Presentation Screenshots Download Support Development Forum    
   

Welcome to the Community Forum.

Here you can discuss with other users or with the author, suggest new features, report bugs, ask for filters creation or correction, etc. Select the forum you wish to read or post below :

Forum
Forum > Development & Bug report > New Download Manager for Firefox 26

Pages : [1] Add a reply
User info New Download Manager for Firefox 26
Cyan
Avatar
Sep 25 2013, 6:17 pm
I got an (automated) mail from Mozilla telling me that they changed completely how Firefox downloads are working.
It's currently in test in Firefox v26.0 (nighly build), and they plan to release it to public on 13th december.


I don't know if I will have time to work on it and update the addon fully/completely/correctly, but there's a high chance it will be done in due time (because I can't live without my addon :p).

I didn't test Firefox 26 yet.
If you are nighly users, I'm sorry that Automatic Save Folder doesn't work anymore until I update it.



I will have to check what has changed, what's different, what's added/removed.
Maybe it won't work the same way. I hope it will still be possible to select folders based on filters.
Post #1
Edit
priopaim
Avatar
Sep 27 2013, 8:25 pm
thanks for your message :)
Post #2
Edit
Cyan
Avatar
Nov 20 2013, 3:01 pm
Ok, I've checked what needs to be updated and why.

Starting from Firefox 26, they will use a new way to work with downloads, and will stop using the old one.

I'm using nsIDownloadManager only to retrieve the "System default download folder" path, which seems to be replaced from :
Quote :
var path = Components.classes["@mozilla.org/download-manager;1"].getService(Components.interfaces.nsIDownloadManager).defaultDownloadsDirectory;
to
Quote :
Components.utils.import("resource://gre/modules/Downloads.jsm");
var path = Downloads.getSystemDownloadsDirectory();



The problem is it doesn't work at all.
Downloads.getSystemDownloadsDirectory() returns an empty object instead of a path, or a nsILocalFile object like before.

It could be a bug https://bugzilla.mozilla.org/show_bug.cgi?id=875648



I've tested using nsIDownloadManager and it still works.
It's only deprecated and not disabled/removed.

I'll keep this until I find a way to use Downloads.jsm correctly. in the meantime, ASF doesn't need to be update for Firefox 26+
I tested it with Firefox 28 and it's working fine.
Post #3
Edit / Delete
Pages : [1] Add a reply

Return to top