rem: var selection = "NC:BookmarksRoot"; selection = RDF.GetResource(selection).Value; 
add: var selection = RDF.GetResource("NC:BookmarksRoot"); 
context:   exportBookmarks: function ()  {    try {      const kFilePickerContractID = "@mozilla.org/filepicker;1";      const kFilePickerIID = Components.interfaces.nsIFilePicker;      const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID);            const kTitle = BookmarksUtils.getLocaleString("EnterExport");      kFilePicker.init(window, kTitle, kFilePickerIID["modeSave"]);      kFilePicker.appendFilters(kFilePickerIID.filterHTML | kFilePickerIID.filterAll);      kFilePicker.defaultString = "bookmarks.html";      var fileName;      if (kFilePicker.show() != kFilePickerIID.returnCancel) {        fileName = kFilePicker.fileURL.spec;        if (!fileName) return;      }      else return;    }    catch (e) {      return;    }    var selection = "NC:BookmarksRoot";    selection = RDF.GetResource(selection).Value;    var args = [{ property: NC_NS+"URL", literal: fileName}];    this.doBookmarksCommand(selection, NC_NS_CMD+"export", args);  }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ca536e767a6116766808abf95ac2609f2c54e5c3/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js