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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user