Page 1 of 1

Bug regarding extensions

Posted: Sat May 15, 2010 10:07 am
by Guest
Every time I change the used download manager in FlashGot the list of file extensions for download is cut to 8 items, the other added extensions are lost.

Re: Bug regarding extensions

Posted: Sat May 15, 2010 8:41 pm
by Giorgio Maone
That's really weird, and it's definitely not happening to me.
What download manager are you switching between?
Which extensions are listed?
Could you show me a screenshot of the extensions list?
Thanks.

Re: Bug regarding extensions

Posted: Wed Jun 02, 2010 2:12 pm
by hjstehr
Giorgio Maone wrote:What download manager are you switching between?
Which extensions are listed?
I switch between Free Download Manager and DTA (Turbo).
The extension list:
Adblock Plus, Autofill Forms, BetterPrivacy, DownThemAll!, FlashGot, Free Download Manager Plugin (deactivated), InFormEnter, It's All Text!, Java Console, Kaspersky URL Advisor, Print/Print Preview, selectivecookiedelete, SQLite Manager, Wörterbuch Deutsch
I'm sorry but I don't know how to send a screenshot to you.

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 8:08 am
by hjstehr
I collected the lines in the prefs.js:

Start with 'DTA (Turbo)' as download manager:
user_pref("flashgot.extensions", "7z,cab,doc,exe,iso,mp3,mp4,msi,pdf");

Change to 'Free Download Manager':
user_pref("flashgot.extensions", "7z,cab,doc,exe,iso,mp3,mp4,msi");
the last extension (pdf) is lost!

'pdf' added again:
user_pref("flashgot.extensions", "7z,cab,doc,exe,iso,mp3,mp4,msi,pdf");

Change back to DTA (Turbo)
user_pref("flashgot.extensions", "7z,cab,doc,exe,iso,mp3,mp4,msi");
the last extension (pdf) is lost again!

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 10:13 am
by Giorgio Maone
OK, I finally could reproduce.
It looks like a Gecko bug involving XUL lists which have not being displayed yet, whose getRowCount() method seems to report only the "visible" lines count, rather than all them as documented.

Switching download managers have no influence, but opening the FlashGot Options dialog and hitting the "OK" button without displaying the "Downloads" tab does repeatably cut the extensions list to 8 (the lines fitting into the list viewport without scrolling).

I'm gonna implement a work-around in next dev build, and file a bug against Mozilla's bug tracker.

Thank you.

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 1:40 pm
by therube
(Had never even realized that file type extensions were kept per download manager.)

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 4:11 pm
by Giorgio Maone
therube wrote:(Had never even realized that file type extensions were kept per download manager.)
It doesn't, in fact.

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 4:42 pm
by therube
Heh. OK, I get it now.
When I first read through his posting, I thought he was showing extensions per download manager.

Now I realize that he was just showing the extensions list as it changed when changing download managers.
Duh!

Re: Bug regarding extensions

Posted: Wed Oct 20, 2010 5:37 pm
by Giorgio Maone