address compatibility warnings from AMO
https://addons.mozilla.org/en-US/developers/addon/firetray/file/203468/validation. Not sure if we should not just drop compatibility... We should be able to support back to Gecko 4.0 but ctypes-utils.jsm uses features introduced in 7.0.
This commit is contained in:
parent
55bd8ce670
commit
c4c5a3425b
|
@ -18,7 +18,7 @@
|
|||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- Firefox -->
|
||||
<em:minVersion>13.0</em:minVersion>
|
||||
<em:minVersion>7.0</em:minVersion>
|
||||
<em:maxVersion>23.0</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<em:targetApplication> <!-- Thunderbird -->
|
||||
<Description>
|
||||
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
|
||||
<em:minVersion>15.0</em:minVersion>
|
||||
<em:minVersion>7.0</em:minVersion>
|
||||
<em:maxVersion>23.0</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<em:targetApplication> <!-- SeaMonkey -->
|
||||
<Description>
|
||||
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
|
||||
<em:minVersion>2.1</em:minVersion>
|
||||
<em:minVersion>2.4</em:minVersion>
|
||||
<em:maxVersion>2.20</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
|
|
@ -325,7 +325,9 @@ firetray.Messaging = {
|
|||
log.debug("runProcess="+filepath+" args="+args);
|
||||
try {
|
||||
// create a file for the process
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); // TODO: nsILocalFile merged into the nsIFile in Gecko 14
|
||||
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
|
||||
|
|
|
@ -21,7 +21,9 @@ function PrefListener(branch_name, callback) {
|
|||
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefService);
|
||||
this._branch = prefService.getBranch(branch_name);
|
||||
this._branch.QueryInterface(Components.interfaces.nsIPrefBranch2); // FIXME: deprecated in Gecko 13.0
|
||||
this._branch.QueryInterface(Ci.nsIPrefBranch);
|
||||
if (!this._branch.addObserver)
|
||||
this._branch.QueryInterface(Ci.nsIPrefBranch2); // deprecated in Gecko 13.0
|
||||
this._callback = callback;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue