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 > [Fixed in r126] Doesn't work FF27 (getTargetFile is undefined)

Pages : [1] Add a reply
User info [Fixed in r126] Doesn't work FF27 (getTargetFile is undefined)
MoDErahN
Avatar
Feb 23 2014, 11:18 pm
asf_right_click.js: line 65: if (window.getTargetFile)

This condition is always false, cose ChromeWindow.getTargetFile is undefined in FF 27.0.1 =(

Any ideas what can we do?
Post #1
Edit
MoDErahN
Avatar
Feb 23 2014, 11:27 pm
Hmm... http://asf.mangaheart.org/index.php?menu=5&f=2&t=170
So... I think that nsIDownloadManager is no longer @depricated, and is @removed :(
Post #2
Edit
Cyan
Avatar
Mar 18 2014, 7:18 pm
Hi,

Thanks for the report.


in FF26, it was deprecated, but still worked.
They asked developers to not use it anymore, but didn't explain how to do the same things without it :(


I found a mozilla's bug report with comments and some example to replace it, but it never worked (it returned an empty value).
Maybe they fixed it in FF27.

I'll have to test.
Post #3
Edit
Cyan
Avatar
May 10 2014, 7:38 pm
I fixed that issue.

The getTargetFile function has been renamed to promiseTargetFile.

the function is the same and accept the same arguments, so I only added a new condition.

if(window.getTargetFile)
patch that function
if(window.promiseTargetFile)
patch that other function


Post #4
Edit / Delete
Pages : [1] Add a reply

Return to top