Added setting of the initial URL in the URL Bar

git-svn-id: svn://10.0.0.236/trunk@18736 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1999-01-27 04:53:10 +00:00
parent fec89f754b
commit b02a88cfcd

View File

@@ -654,7 +654,12 @@ NS_IMETHODIMP nsWebShellWindow::OnConnectionsComplete()
nsIDOMNode * node = FindNamedDOMNode(nsAutoString("INPUT"), parent, count, 1);
if (nsnull != node) {
if (NS_OK == node->QueryInterface(kIDOMHTMLInputElementIID, (void**) &mURLBarText)) {
// no errors
PRUnichar * urlStr = nsnull;
contentWS->GetURL(0, &urlStr);
if (nsnull != urlStr) {
nsString url(urlStr);
mURLBarText->SetValue(url);
}
}
NS_RELEASE(node);
}