Firefox 7 - New way of downloading files

Discussion in 'Computer Games and General Discussion' started by Cyan, Oct 5, 2011.

Oct 5, 2011
  1. Cyan
    OP

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,390
    Location:
    Engine room, learning
    Country:
    France
    It seems Firefox 7.0.1 is now memorizing the last saved folder on a site-by-site basis.
    I guess it's only for users with the option to always ask where to download the files, so if you set Firefox option to always download to your desktop or your download folder then you didn't notice the change.


    Previously, Firefox 2 to 6 used a single setting to store the last saved folder path (browser.download.lastDir).
    Now this setting is not used anymore, but my add-on is based on this setting.
    The result is that my add-on (download content filtering) is not working anymore [​IMG]

    Would anyone know a way to disable the site-by-site save path setting and go back to the old single path setting? any setting in about:config?



    Here is what I've currently found about this new feature:
    https://developer.mozilla.org/en/Firefox_7_...erience_changes (second line)
    https://developer.mozilla.org/en/JavaScript...loadLastDir.jsm
    resource://gre/modules/DownloadLastDir.jsm

    My problem:
    If I want to read and write path for the current URI, ... which URI it's based of? the file's host or the current website's tab URL?
    How do I read the current URI? or aURI?
    It's really badly documented [​IMG]

    I wish there'd be a way to disable this "new super interesting" feature they are forcing on the users.
    My add-on is now useless, I can't live without it [​IMG]
     
  2. Magsor

    Member Magsor I am watching you

    Joined:
    Dec 1, 2010
    Messages:
    959
    Location:
    Amos
    Country:
    Canada
  3. Rydian

    Member Rydian Resident Furvertâ„¢

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    His issue is he makes addons, and requesting people to downgrade firefox to use an addon of his is not a workable method.
     
  4. Nimbus

    Member Nimbus sudo /usr/bin make-me-a-coffee --nosugar --cream=1

    Joined:
    Nov 1, 2009
    Messages:
    913
    Location:
    Probably being lazy.
    Country:
    United Kingdom
    I think this is an awesome feature personally.

    I love being able to download videos from youtube and not have to browse to my Videos folder again and again in Ubuntu to save it there.
     
  5. Cyan
    OP

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,390
    Location:
    Engine room, learning
    Country:
    France
    Thanks Rydian [​IMG]

    Yeah, I can't force people to use an old version of Firefox.
    I would like to know how to switch this feature off, or how to read/write the path myself.
    I checked the source code, and currently it seems there's no way to disabled it.

    I'll have to update the code. I hope I will find a way to update it quickly, there are already a lot of users using my add-on who switched to 7.0.1
    (well, only 4000 users, but it's 4000 over 8000 total users, so half of them).


    @Nimbus:
    Well, I think you would have loved my add-on will love it now it's fixed! , as it allow you to select which folder to save your files according to filters based on the domain and downloaded filename.


    Now, Firefox is forcing the download only based on website domain name, and not on filename/filetype/sub-domain/dynamic creation folder based on the filters/etc.
    They should have implemented my add-on feature natively in Firefox instead! [​IMG]


    Edit:
    I think I found a way to edit/overwrite the path stored in memory on a URI basis.

    I'm currently debugging it, but it seems to work fine again [​IMG]
    Ahhh, I'm relieved!

    I'll update my addon for everyone else this weekend [​IMG]
     
    1 person likes this.
  6. liomajor

    Member liomajor GBAtemp Maniac

    Joined:
    Jun 10, 2008
    Messages:
    1,440
    Country:
    United States
    Did anyone find a way to disable site-by-site without downgrading browser?

    This feature is not smart, its just annoying.
     
  7. Cyan
    OP

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,390
    Location:
    Engine room, learning
    Country:
    France
    yes, install my addon, and don't set any filter.
    Just set the option at the bottom of the preferences window>filter tab :
    • "use the last used folder".
      or
    • Use this default folder [xxxxxxxxx] (and select the one you want to always use as forced folder).
    And it will act like Firefox page1>File browser> if you want to always save to Desktop/Download/or user defined folder whithout being prompt by the file explorer.
    If you want to use a manual folder, set it to "set by filter".
    [​IMG]



    Though, you will have to follow a mandatory requirement :
    Set Firefox to always ask where to save this file type, or else ASF will not trigger.
    read step1 & 3.
    If the "what firefox need to do with this file" dialog is annoying, you can force the auto-accept. (options>page1>while downloading>Automatically accept the save dialog).


    I managed to find a way to fix my add-on with the new firefox saving feature, it's still not officially released on mozilla but the beta version is working fine :)

    http://asf.mangaheart.org
    Look in download>beta menu.


    and with some chance, you may find my add-on filtering feature interesting and use it to sort your download according to the filename or domain name :P
     
  8. liomajor

    Member liomajor GBAtemp Maniac

    Joined:
    Jun 10, 2008
    Messages:
    1,440
    Country:
    United States
    Hmm i don't think this will work in the way i'm used to.

    I don't want to brag with any filters for filetypes or force a specific folder.

    All i need is "use last folder" where i stored the files last time i did.

    For the time beeing i downgraded back to FF 6.0.2.

    Thx anyway.
     
  9. Cyan
    OP

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,390
    Location:
    Engine room, learning
    Country:
    France
    You should try it nevertheless, you don't have to create any filter.
    Just try "save in the last used folder" in the main preference and that's all.
    See if it fix your problem without changing anything (as I don't know how you are currently using your firefox, maybe it's already fine).


    if you want to downgrade, 7.0.0 is fine, it was introduced in 7.0.1
    At least, I don't remember 7.0.0 not working fine.

    Maybe there will be a developer creating an add-on to disable this new feature.
    Maybe they will add a user setting to select if you want it or not (as I think a lot of users are now pissed with this feature they are forcing upon us).
    Maybe there will be nothing fixing it, try my add-on.
     
  10. Nimbus

    Member Nimbus sudo /usr/bin make-me-a-coffee --nosugar --cream=1

    Joined:
    Nov 1, 2009
    Messages:
    913
    Location:
    Probably being lazy.
    Country:
    United Kingdom
    I'll check it out sometime Cyan, it sounds useful.

    Funny, I never thought you developed for Firefox before, I used to work with a Firefox Dev at my work before he "according to unverified sources" got cannzored.
     

Share This Page