rem: var propertyRes = gRDF.GetResource(NC_RDF(properties[j]), true); 
add: var propertyRes = gRDF.GetUnicodeResource(NC_RDF(properties[j]), true); 
context: function removeOverride(aMIMEType){  // remove entry from seq  var rdfc = Components.classes["@mozilla.org/rdf/container;1"].createInstance();  if (rdfc) {    rdfc = rdfc.QueryInterface(Components.interfaces.nsIRDFContainer);    if (rdfc) {      var containerRes = gRDF.GetResource("urn:mimetypes:root");      rdfc.Init(gDS, containerRes);      var element = gRDF.GetResource(MIME_URI(aMIMEType));      if (rdfc.IndexOf(element) != -1) {        try {          rdfc.RemoveElement(element, true);        }        catch(e) {          // suppress (benign?) errors        }       }    }  }    // remove items from the graph    var urns = [ [MIME_URI, ["description", "editable", "value", "fileExtensions", "smallIcon", "largeIcon"],                           [HANDLER_URI, "handlerProp"]],                              [HANDLER_URI, ["handleInternal", "saveToDisk", "alwaysAsk", "useSystemDefault"],                           [APP_URI, "externalApplication"]],                             [APP_URI, ["path", "prettyName"]] ];  for (var i = 0; i < urns.length; i++) {    var mimeRes = gRDF.GetResource(urns[i][0](aMIMEType));    // unassert the toplevel properties    var properties = urns[i][1];    for (var j = 0; j < properties.length; j++) {      var propertyRes = gRDF.GetResource(NC_RDF(properties[j]), true);      if (properties[j] == "fileExtensions") {  // hacky. do it better next time.         var mimeValues = gDS.GetTargets(mimeRes, propertyRes, true);        mimeValues = mimeValues.QueryInterface(Components.interfaces.nsISimpleEnumerator);        while (mimeValues.hasMoreElements()) {          var currItem = mimeValues.getNext();          if (mimeRes && propertyRes && currItem)             gDS.Unassert(mimeRes, propertyRes, currItem, true);        }      }      else {        var mimeValue = gDS.GetTarget(mimeRes, propertyRes, true);        if (mimeRes && propertyRes && mimeValue)          gDS.Unassert(mimeRes, propertyRes, mimeValue, true);      }    }    if ("2" in urns[i] && urns[i][2]) {      var linkRes = gRDF.GetResource(NC_RDF(urns[i][2][1]), true);      var linkTarget = gRDF.GetResource(urns[i][2][0](aMIMEType), true);      gDS.Unassert(mimeRes, linkRes, linkTarget);    }  }  try {    gDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush();  } catch(e) {  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/71bb8bccf087a9d8d3d9c061d093576a472ce373/overrideHandler.js/buggy/xpfe/components/prefwindow/resources/content/overrideHandler.js