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 e

clear cache

2015-06-19 Thread Marcello Stanisci
Hi All, I have followed various guides on how to clear the 'cache' in order to get changes in the JavaScript accepted withouth restarting the browser. In this case, I talk about the JavaScript of an extension. So: how to clear the 'cache' in order to get a fresh changed JavaScript recognized, wh

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 >

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 contex

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, b