rem: var tab = getTabForObject(this); 
context: function my_dccfileprogress(e){    var now = new Date();    var pcent = Math.floor(100 * this.position / this.size);    // If we've moved 100KiB or waited 10s, update the progress bar.    if ((this.position > this._lastPosition + 102400) ||        (now - this._lastUpdate > 10000))    {        this.progress = pcent;        updateProgress();        updateTitle();        var tab = getTabForObject(this);        if (tab)            tab.setAttribute("label", this.viewName + " (" + pcent + "%)");        var change = (this.position - this._lastPosition);        var speed = change / ((now - this._lastSpeedTime) / 1000); // B/s        this._lastSpeedTime = now;        /* Use an average of the last speed, and this speed, so we get a little         * smoothing to it.         */        this.speed = (this.speed + speed) / 2;        this.updateHeader();        this._lastPosition = this.position;    }    // If it's also been 10s or more since we last displayed a msg...    if (now - this._lastUpdate > 10000)    {        this.displayHere(getMsg(MSG_DCCFILE_PROGRESS,                                [pcent, getSISize(this.position),                                 getSISize(this.size), getSISpeed(this.speed)]),                         "DCC-FILE");        this._lastUpdate = now;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/11d6178af3c18e21dd5f03ee8f18358a20a4f5df/handlers.js/clean/extensions/irc/xul/content/handlers.js