From 3530b05d4b0b05f410a304550c4c1258d6d520ae Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Wed, 19 Dec 2018 08:09:18 -0500 Subject: [PATCH] TB64 XXXUtils.generateQI API move, but backwards-compatibile --- components/thunderlinkCommandLineHandler.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/thunderlinkCommandLineHandler.js b/components/thunderlinkCommandLineHandler.js index 5d1e45d..dc3e216 100755 --- a/components/thunderlinkCommandLineHandler.js +++ b/components/thunderlinkCommandLineHandler.js @@ -145,13 +145,18 @@ var thunderlinkCommandLineHandler = { }, // Use ChromeUtils instead of XPCOMUtils here and line 154 for TB64+ (or earlier?) - QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory]), + QueryInterface: + (XPCOMUtils.generateQI + && XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory])) + || ChromeUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory]), }; function thunderlinkCommandLineHandlerModule() { } thunderlinkCommandLineHandlerModule.prototype = { classID: Components.ID("{547bfe26-688b-4e63-a1da-07da0e8367e1}"), - QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIModule]), + QueryInterface: + (XPCOMUtils.generateQI && XPCOMUtils.generateQI([Components.interfaces.nsIModule])) + || ChromeUtils.generateQI([Components.interfaces.nsIModule]), _xpcom_factory: thunderlinkCommandLineHandler, };