rem: var showLocales = true; 
add: showLocales = true; 
context: function updateOptionalViews() {  var ds = gExtensionManager.datasource;  var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"]                   .getService(Components.interfaces.nsIRDFService);  var ctr = Components.classes["@mozilla.org/rdf/container;1"]                      .createInstance(Components.interfaces.nsIRDFContainer);  ctr.Init(gExtensionManager.datasource, rdfs.GetResource(RDFURI_ITEM_ROOT));  var elements = ctr.GetElements();  while (elements.hasMoreElements()) {    var e = elements.getNext().QueryInterface(Components.interfaces.nsIRDFResource);    if (!showPlugins || !showLocales) {      var typeArc = rdfs.GetResource(PREFIX_NS_EM + "type");      var type = ds.GetTarget(e, typeArc, true);      if (type && type instanceof Components.interfaces.nsIRDFInt) {        if (type.Value & nsIUpdateItem.TYPE_PLUGIN)          var showPlugins = true;        if (type.Value & nsIUpdateItem.TYPE_LOCALE)          var showLocales = true;      }    }    if (!showUpdates) {      var updateURLArc = rdfs.GetResource(PREFIX_NS_EM + "availableUpdateURL");      var updateURL = ds.GetTarget(e, updateURLArc, true);      if (updateURL) {        var updateableArc = rdfs.GetResource(PREFIX_NS_EM + "updateable");        var updateable = ds.GetTarget(e, updateableArc, true);        updateable = updateable.QueryInterface(Components.interfaces.nsIRDFLiteral);        if (updateable.Value == "true")          var showUpdates = true;      }    }    if (showInstalls)      continue;    var stateArc = rdfs.GetResource(PREFIX_NS_EM + "state");    var state = ds.GetTarget(e, stateArc, true);    if (state)      var showInstalls = true;  }  document.getElementById("locales-view").hidden = !showLocales;  document.getElementById("plugins-view").hidden = !showPlugins;  document.getElementById("updates-view").hidden = !showUpdates;  document.getElementById("installs-view").hidden = !showInstalls;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/79d7684915e26086e9a0d43a9228017a3c9e2689/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js