rem: if (!window) 
add: if (!window || !("document" in window)) 
context: function checkScroll(frame){    var window = getContentWindow(frame);    if (!window)        return false;    return (window.document.height - window.innerHeight -            window.pageYOffset) < 160;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7e998d1a2e81d56757ccb1d104bf94e8be456a0d/static.js/clean/extensions/irc/xul/content/static.js