Emulating WebExtensions

2015-12-23 Thread Marcello Stanisci
Hi list, Would it be possible to emulate what the 'backgroud' page does in the context of a "normal" Firefox extension by using Web workers? In detail, WebExtensions dictates that each extension has a background thread which runs independently of its foreground counterpart, and that they notify

openDialog(DOM, ..)

2015-07-06 Thread Marcello Stanisci
Hello, Consider the method: window.openDialog(URL.xul, ...). Its final result is to opens a dialog from the content read in file URL.xul. After some web surfing, it seems not possible to programmatically define a dialog, and then open that dialog (somehow) from the main window. So, in the

Re: openDialog(DOM, ..)

2015-07-06 Thread Marcello Stanisci
Alternatively, create an empty dialog and manipulate the dialog using DOM based on the arguments you pass using window.open[Dialog](...). This is What do you mean by 'empty dialog'? Is it a a. xul skeleton file or something like b. openDialog(about:blank); ? I might have missed that, but

Re: clear cache

2015-06-23 Thread Marcello Stanisci
Tried on latest FF too, no luck. If someone got that working, please give us some advice! Marcello Additionally, launching FF with '-clearcaches' or by setting the environmental 'MOZ_CLEAR_CACHES' does not seems to give the desired effect. The switch you want is -purgecaches Phil