From 94b5a2df7992e86a522610205ee4717cb2a89a61 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 17 Aug 2010 00:10:25 +0200 Subject: [PATCH] make compatible with 3.6 --- OxFF/components/OxFF.js | 11 +++++++++-- OxFF/install.rdf | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/OxFF/components/OxFF.js b/OxFF/components/OxFF.js index dfc42cb..634e823 100644 --- a/OxFF/components/OxFF.js +++ b/OxFF/components/OxFF.js @@ -361,6 +361,13 @@ OxFF.prototype = { }); }, } -//4.0 only -var NSGetFactory = XPCOMUtils.generateNSGetFactory([OxFF]); + +/** +* XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4). +* XPCOMUtils.generateNSGetModule is for Mozilla 1.9.2 (Firefox 3.6). +*/ +if (XPCOMUtils.generateNSGetFactory) + var NSGetFactory = XPCOMUtils.generateNSGetFactory([OxFF]); +else + var NSGetModule = XPCOMUtils.generateNSGetModule([OxFF]); diff --git a/OxFF/install.rdf b/OxFF/install.rdf index e6a87be..c58aa3c 100644 --- a/OxFF/install.rdf +++ b/OxFF/install.rdf @@ -10,7 +10,7 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 3.5 + 3.6 4.0b9