sorry for such a basic question but my strings sent with console.log from
the frame script are not displayed any more in the browser console when I
restart Nightly.
I have no error msg and the code seems to work but the message from the
browser script only are given in the console… Have I change an option ?
Thanks
F.
I add this at the top of the file
const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
Cu.import(‘resource://gre/modules/Console.jsm’);
but the console.log() are still silent.
I could revert to my old logging function
LOG: function(msg){ var consoleService = Components.classes["@ mozilla.org/consoleservice;1
"].getService(Components.interfaces.nsIConsoleService);
consoleService.logStringMessage(msg);
},
which is still working, but the console.log command were displayed in an
other color then the msg from the browser script. That was usefull…
Is this something which just changed in recent versions of nightly? It works for me and I’m not aware of any very recent changes to this bit of code, although it was changed heavily the back end of last year.