rem: if(hasimages) { var iframe = document.createElement("iframe"); iframe.setAttribute("name", "view"); iframe.setAttribute("src", "about:blank"); iframe.setAttribute("flex", "4"); root.appendChild(iframe); 
add: var formTreeHolder = document.getElementById("formtreecontainer"); var hasForm = makeFormTree(page, formTreeHolder); if (hasForm) { var formBox = document.getElementById("formtreecontainer"); formBox.removeAttribute("collapsed"); }  var imageTreeHolder = document.getElementById("imagetreecontainer"); var hasimages = makeImageTree(page, imageTreeHolder); if (hasimages) { var imageBox = document.getElementById("image_items"); imageBox.removeAttribute("collapsed"); 
context: function onLoadPageInfo() {  var page = window.opener.frames[0].document;  //var page = window.frames.content.document;  var root = document.getElementById("cont");  makeDocument(page, root);  var hasimages = makeImageTree(page, root);  makeFormTree(page, root);  if(hasimages) {    var iframe = document.createElement("iframe");    iframe.setAttribute("name", "view");    iframe.setAttribute("src", "about:blank");    iframe.setAttribute("flex", "4");    root.appendChild(iframe);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/91337793fb3c717b1ecee7576d85e71c6eeaaea0/pageInfo.js/buggy/suite/browser/pageInfo.js