rem: var w = frame.contentWindow; return ((w.document.height - (w.innerHeight + w.pageYOffset)) < 160); 
add: return (window.document.height - window.innerHeight - window.pageYOffset) < 160; 
context: function checkScroll(frame){    if (!frame || !("contentWindow" in frame))        return false;    var w = frame.contentWindow;    return ((w.document.height - (w.innerHeight + w.pageYOffset)) < 160);}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/377dd328ba12f71ca976ba1a877bf8881dae0beb/static.js/buggy/xul/content/static.js