rem: pref = pref.QueryInterface(Components.interfaces.nsIPref);  
context: function readIRCPrefs (rootNode){    if (!getPriv("UniversalXPConnect"))        return false;    var pref =        Components.classes["@mozilla.org/preferences;1"].createInstance();    if(!pref)        throw ("Can't find pref component.");    if (!rootNode)        rootNode = "extensions.irc.";    if (!rootNode.match(/\.$/))        rootNode += ".";        pref = pref.QueryInterface(Components.interfaces.nsIPref);    CIRCNetwork.prototype.INITIAL_NICK =        getCharPref (pref, rootNode + "nickname",                     CIRCNetwork.prototype.INITIAL_NICK);    CIRCNetwork.prototype.INITIAL_NAME =        getCharPref (pref, rootNode + "username",                     CIRCNetwork.prototype.INITIAL_NAME);    CIRCNetwork.prototype.INITIAL_DESC =        getCharPref (pref, rootNode + "desc",                     CIRCNetwork.prototype.INITIAL_DESC);    CIRCNetwork.prototype.INITIAL_CHANNEL =        getCharPref (pref, rootNode + "channel",                     CIRCNetwork.prototype.INITIAL_CHANNEL);    client.MAX_MESSAGES =         getIntPref (pref, rootNode + "views.client.maxlines",                    client.MAX_MESSAGES);    CIRCChannel.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.channel.maxlines",                    CIRCChannel.prototype.MAX_MESSAGES);    CIRCChanUser.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.chanuser.maxlines",                    CIRCChanUser.prototype.MAX_MESSAGES);        var h = client.eventPump.getHook ("event-tracer");    h.enabled =        getBoolPref (pref, rootNode + "debug.tracer", h.enabled);    }
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/fb40a907ab670c83ecbab9f81c45c2a56bfecd02/test3-readprefs.js/buggy/xul/tests/test3-readprefs.js