rem: transaction.length = transaction.item.length; transaction.update(); aTransactionSet.push(transaction); aTransaction.type = "import"; 
add: var isCancelled = !BookmarksUtils.any(transaction.isValid) if (!isCancelled) { gBMtxmgr.doTransaction(transaction); BookmarksUtils.flushDataSource(); } 
context:   importBookmarks: function ()  {    ///transaction...    try {      const kFilePickerContractID = "@mozilla.org/filepicker;1";      const kFilePickerIID = Components.interfaces.nsIFilePicker;      const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID);          const kTitle = BookmarksUtils.getLocaleString("SelectImport");      kFilePicker.init(window, kTitle, kFilePickerIID["modeOpen"]);      kFilePicker.appendFilters(kFilePickerIID.filterHTML | kFilePickerIID.filterAll);      var fileName;      if (kFilePicker.show() != kFilePickerIID.returnCancel) {        fileName = kFilePicker.fileURL.spec;        if (!fileName) return;      }      else return;    }    catch (e) {      return;    }    rTarget = RDF.GetResource("NC:BookmarksRoot");    RDFC.Init(BMDS, rTarget);    var countBefore = parseInt(BookmarksUtils.getProperty(rTarget, RDF_NS+"nextVal"));    var args = [{ property: NC_NS+"URL", literal: fileName}];    this.doBookmarksCommand(rTarget, NC_NS_CMD+"import", args);    var countAfter = parseInt(BookmarksUtils.getProperty(rTarget, RDF_NS+"nextVal"));    var transaction = new Bookmarktransaction("insert");    for (var index = countBefore; index < countAfter; index++) {      var nChildArc  = RDF.GetResource(RDF_NS+"_"+String(index));      var rChild     = BMDS.GetTarget(rTarget, nChildArc, true);      transaction.item  .push(rChild);      transaction.parent.push(rTarget);      transaction.index .push(index);      transaction.isPerformed.push(true);    }    transaction.length = transaction.item.length;    transaction.update();    aTransactionSet.push(transaction);    aTransaction.type = "import";  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/55bc7217045065e33dffd74d428f117333331e22/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js