This took far to long to find. I use window.onerrr=null to disable javascript errors where I knew they would occur (and it didnt matter) but it took me 20 minutes to find how to reset it back to normal. Here is what you do:
function autofitIframe(id) {
window.onerror=null; // disable errors caused by cross-domain scripting
if (!window.opera && !top.document.mimeType && top.document.all && top.document.getElementById) {
top.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
} else {
if(document.getElementById)
top.document.getElementById(id).style.height=this.document.body.scrollHeight+"px";
}
window.onerror = window.defaultOnError; // restore default handler
}