Omar E.
Omar E.

Reputation: 13

How to handle downloading in GeckoFX 60

I have Jason Shuler's solution (https://stackoverflow.com/a/38058475/10707700) running on GeckoFX 45.0.34, now I want to update my application to GeckoFX version 60.0.22, but the line:

nsILocalFile objTarget = Xpcom.CreateInstance<nsILocalFile>("@mozilla.org/file/local;1");

fails, because the Gecko.nsILocalFile object does not exist, How do I update the previous line to work in GeckoFX version 60.0.22?

Upvotes: 0

Views: 774

Answers (1)

Tom
Tom

Reputation: 6729

use nsIFile instead of nsILocalFile

for more information see this geckofx issue

Upvotes: 1

Related Questions