rem: if ((aDocument && doc == aDocument) && aDocShell.currentURI.spec == aSoughtURI.spec) 
add: if ((aDocument && doc == aDocument) || (aSoughtURI && aSoughtURI.spec == aDocShell.currentURI.spec)) 
context: function findChildShell(aDocument, aDocShell, aSoughtURI) {  aDocShell.QueryInterface(Components.interfaces.nsIWebNavigation);  aDocShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor);  var doc = aDocShell.getInterface(Components.interfaces.nsIDOMDocument);  if ((aDocument && doc == aDocument) &&       aDocShell.currentURI.spec == aSoughtURI.spec)    return aDocShell;  var node = aDocShell.QueryInterface(Components.interfaces.nsIDocShellTreeNode);  for (var i = 0; i < node.childCount; ++i) {    var docShell = node.getChildAt(i);    docShell = findChildShell(aDocument, docShell, aSoughtURI);    if (docShell)      return docShell;  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0c069551201c44cd92a1a0e08557520fc75094ef/browser.js/buggy/browser/base/content/browser.js