* remove calls to old/deprecated interfaces (reported by AMO)

* reset logging level
This commit is contained in:
foudfou 2013-10-27 23:01:07 +01:00
parent 1fc3b93bd7
commit eda4302ba5
3 changed files with 3 additions and 6 deletions

View File

@ -6,6 +6,7 @@ const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/ctypes.jsm");
Cu.import("resource://firetray/commons.js");
@ -428,9 +429,7 @@ firetray.Handler = {
openMailMessage: function() {
try {
var aURI = Services.io.newURI("mailto:", null, null);
var msgComposeService = Cc["@mozilla.org/messengercompose;1"]
.getService(Ci.nsIMsgComposeService);
msgComposeService.OpenComposeWindowWithURI(null, aURI);
MailServices.compose.OpenComposeWindowWithURI(null, aURI);
} catch (x) { log.error(x); }
},

View File

@ -321,8 +321,6 @@ firetray.Messaging = {
try {
// create a file for the process
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
if (!file.initWithPath)
file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); // deprecated in Gecko 14
file.initWithPath(filepath);
// create the process

View File

@ -6,7 +6,7 @@ const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
const FIRETRAY_LOG_LEVEL = "All"; // "All" for debugging
const FIRETRAY_LOG_LEVEL = "Warn"; // "All" for debugging
const COLOR_NORMAL = "";
const COLOR_RESET = "\033[m";