rem: gPlugins[plugin.filename] = plugin; 
context: function initPluginsDS(){  var phs = Components.classes["@mozilla.org/plugin/host;1"]                      .getService(Components.interfaces.nsIPluginHost);  var plugins = phs.getPluginTags({ });  var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"]                      .getService(Components.interfaces.nsIRDFService);  var rdfCU = Components.classes["@mozilla.org/rdf/container-utils;1"]                        .getService(Components.interfaces.nsIRDFContainerUtils);  gPluginsDS = Components.classes["@mozilla.org/rdf/datasource;1?name=in-memory-datasource"]                         .createInstance(Components.interfaces.nsIRDFDataSource);  gPlugins = { };  var rootctr = rdfCU.MakeSeq(gPluginsDS, rdf.GetResource(RDFURI_ITEM_ROOT));  var div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");  for (var i = 0; i < plugins.length; i++) {    var plugin = plugins[i];    var pluginNode = rdf.GetResource(PREFIX_ITEM_URI + plugin.filename);    var desc = plugin.description.replace(/<br>/g, "<br/> ");    try {      div.innerHTML = desc;      desc = div.textContent;    } catch (e) {      desc = plugin.description;    }    rootctr.AppendElement(pluginNode);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "name"),                      rdf.GetLiteral(plugin.name),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "addonID"),                      rdf.GetLiteral(plugin.filename),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "description"),                      rdf.GetLiteral(desc),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "isDisabled"),                      rdf.GetLiteral(plugin.disabled ? "true" : "false"),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "blocklisted"),                      rdf.GetLiteral(plugin.blocklisted ? "true" : "false"),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "compatible"),                      rdf.GetLiteral("true"),                      true);    gPluginsDS.Assert(pluginNode,                      rdf.GetResource(PREFIX_NS_EM + "plugin"),                      rdf.GetLiteral("true"),                      true);    gPlugins[plugin.filename] = plugin;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/622e008513a3a38fa52f591ab95a926c31c93c46/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js