rem: LOG("_loadEngines: Failed to load " + file.path + "!\n" + ex); 
add: LOG("loadEngines: Failed to load " + file.path + "!\n" + ex); 
context:   _loadEngines: function SRCH_SVC_loadEngines(aDir) {    LOG("_loadEngines: Searching in " + aDir.path + " for search engines.");    // Check whether aDir is the user profile dir    var isInProfile = aDir.equals(getDir(NS_APP_USER_SEARCH_DIR));    var files = aDir.directoryEntries                    .QueryInterface(Ci.nsIDirectoryEnumerator);    var ios = Cc["@mozilla.org/network/io-service;1"].              getService(Ci.nsIIOService);    while (files.hasMoreElements()) {      var file = files.nextFile;      // Ignore hidden and empty files, and directories      if (!file.isFile() || file.fileSize == 0 || file.isHidden())        continue;      var fileURL = ios.newFileURI(file).QueryInterface(Ci.nsIURL);      var fileExtension = fileURL.fileExtension.toLowerCase();      var isWritable = isInProfile && file.isWritable();      var dataType;      switch (fileExtension) {        case XML_FILE_EXT:          dataType = SEARCH_DATA_XML;          break;        case SHERLOCK_FILE_EXT:          dataType = SEARCH_DATA_TEXT;          break;        default:          // Not an engine          continue;      }      var addedEngine = null;      try {        addedEngine = new Engine(file, dataType, !isWritable);        addedEngine._initFromFile();      } catch (ex) {        LOG("_loadEngines: Failed to load " + file.path + "!\n" + ex);        continue;      }      if (fileExtension == SHERLOCK_FILE_EXT) {        if (isWritable) {          try {            this._convertSherlockFile(addedEngine, fileURL.fileBaseName);          } catch (ex) {            LOG("_loadEngines: Failed to convert: " + fileURL.path + "\n" + ex);            // The engine couldn't be converted, mark it as read-only            addedEngine._readOnly = true;          }        }        // If the engine still doesn't have an icon, see if we can find one        if (!addedEngine._iconURI) {          var icon = this._findSherlockIcon(file, fileURL.fileBaseName);          if (icon)            addedEngine._iconURI = ios.newFileURI(icon);        }      }      this._addEngineToStore(addedEngine);    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/1ee157150d81b427464377d3687273e81577b011/nsSearchService.js/buggy/browser/components/search/nsSearchService.js