rv = securityManager->CheckLoadURI(baseURI, newURI);
rv = securityManager->CheckLoadURI(baseURI, newURI, PR_FALSE);
nsHTMLFrameInnerFrame::Reflow(nsIPresContext*          aPresContext,                              nsHTMLReflowMetrics&     aDesiredSize,                              const nsHTMLReflowState& aReflowState,                              nsReflowStatus&          aStatus){  NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS,     ("enter nsHTMLFrameInnerFrame::Reflow: maxSize=%d,%d reason=%d",      aReflowState.availableWidth,      aReflowState.availableHeight,      aReflowState.reason));  nsresult rv = NS_OK;  // use the max size set in aReflowState by the nsHTMLFrameOuterFrame as our size  if (!mCreatingViewer) {    nsIContent* content;    GetParentContent(content);    nsAutoString url;    PRBool hasURL = GetURL(content, url);    // create the web shell    // we do this even if the size is not positive (bug 11762)    // we do this even if there is no src (bug 16218)    if (!mWebShell) {      nsSize  maxSize(aReflowState.availableWidth, aReflowState.availableHeight);      rv = CreateWebShell(aPresContext, maxSize);#ifdef INCLUDE_XUL      // The URL can be destructively altered when a content shell is made.      // Refetch it to ensure we have the actual URL to load.      hasURL = GetURL(content, url);#endif // INCLUDE_XUL    }    if (mWebShell) {      mCreatingViewer=PR_TRUE;      if (hasURL) {        // load the document        nsString absURL;        TempMakeAbsURL(content, url, absURL);        // Check we can load 'absURL'        nsCOMPtr<nsIURI> baseURI, newURI;        NS_WITH_SERVICE(nsIScriptSecurityManager, securityManager,                         NS_SCRIPTSECURITYMANAGER_PROGID, &rv);        if (NS_SUCCEEDED(rv))          rv = aPresContext->GetBaseURL(getter_AddRefs(baseURI));        if (NS_SUCCEEDED(rv))           rv = NS_NewURI(getter_AddRefs(newURI), absURL, baseURI);                   if (NS_SUCCEEDED(rv))           rv = securityManager->CheckLoadURI(baseURI, newURI);        if (NS_SUCCEEDED(rv)) {          rv = mWebShell->LoadURL(absURL.GetUnicode());  // URL string with a default nsnull value for post Data        }      }    }    NS_RELEASE(content);  }  aDesiredSize.width  = aReflowState.availableWidth;  aDesiredSize.height = aReflowState.availableHeight;  aDesiredSize.ascent = aDesiredSize.height;  aDesiredSize.descent = 0;  if (nsnull != aDesiredSize.maxElementSize) {    aDesiredSize.maxElementSize->width = aDesiredSize.width;    aDesiredSize.maxElementSize->height = aDesiredSize.height;  }  aStatus = NS_FRAME_COMPLETE;  // resize the sub document  nsCOMPtr<nsIBaseWindow> webShellWin(do_QueryInterface(mWebShell));  if(webShellWin) {    float t2p;    aPresContext->GetTwipsToPixels(&t2p);    nsRect subBounds;    webShellWin->GetPositionAndSize(&subBounds.x, &subBounds.y,                       &subBounds.width, &subBounds.height);    subBounds.width  = NSToCoordRound(aDesiredSize.width * t2p);    subBounds.height = NSToCoordRound(aDesiredSize.height * t2p);    webShellWin->SetPositionAndSize(subBounds.x, subBounds.y,                       subBounds.width, subBounds.height, PR_FALSE);    NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS,      ("exit nsHTMLFrameInnerFrame::Reflow: size=%d,%d rv=%x",      aDesiredSize.width, aDesiredSize.height, aStatus));  }      return rv;}