(I have received your answer through mail, but ther isn't in the browser... (??) )
I'm using FF30 too.
Anyway I tried the scratchpad in FF30 (Shift+F4) and there is the option of environment browser: so Cu and Downloads work. In Web Console nothing...
But with your lines I can't get the console answer because I'm in browser env (I should go into content env but then I don't get Cu and Downloads...)
It gives me [object Object] answer with this:
Downloads.getSummary(Downloads.PUBLIC)
I tried MozRepl connection and I get this answer:
[object Object] - {then: function() {...}}
So, I can't actually test anything.
BTW:
The real purpose I want to, is modify to the new syntax, FF.au3 autoit wrapper that has something like the old:
Local $RetVal = _FFCmd('try{FFau3.obj = Components.classes["@
mozilla.org/download-manager;1"].getService(Components.interfaces.nsIDownloadManager).' & "activeDownloadCount" & "" & "" & ';}catch(e){-3;};')
Il giorno giovedì 7 agosto 2014 11:24:24 UTC+2, VideosProva ha scritto:
It seems you are not using a chrome privileged console ("Downloads" and "Cu" should already be defined,
"Cu" is an alias for "Components.utils")
I'm trying on Firefox 30.0 and I can access the Downloads API from MozREPL using the above code snippets.