// null parameter below specifies HTML response for search //var submission = this.currentEngine.getSubmission(aData, null);

//var allEngines = this.searchService.getDefaultEngines({});

// JC wwwwwwww ADDED ON 7/1/2016 TEMPORARY DEBUG!!! var allEngines = outwitDocs.gEngineManager.defaultEngines = this.searchService.getEngines({}); outwitDocs.gEngineManager.defaultEngine = allEngines[0]; outwitDocs.gEngineManager.currentEngine = this.searchService.currentEngine;

historyHandler.newGo(aData, true, true, null);

// XXX TEMPORARY if (aData.toLowerCase() == "ow:getdefaultengines") { var b = outwitDocs.gEngineManager.defaultEngines; var theResult = ""; for (var i = 0; i < b.length; i++) { theResult += b[i].name + ", "; } theResult += "\n" + outwitDocs.gEngineManager.defaultEngine.name; alert (theResult); } else if (aData.toLowerCase() == "ow:engineparameters") { alert("Preference : \n" + ow.app.kernel.prefs.getString("oWDocs.searchEnginesConfig", "not yet created") + "\n\nInternal stuff: \n" + outwitDocs.gEngineManager._nsIJSON.encode(outwitDocs.gEngineManager._engineParamsConfig)); }