public void EnableConsoleMessageNotfication() { var consoleService = Xpcom.GetService<nsIConsoleService>("@mozilla.org/consoleservice;1"); consoleService.RegisterListener(new ConsoleListener(this)); Marshal.ReleaseComObject(consoleService); }