Stop onload handler firing twice

This commit is contained in:
law%netscape.com 1999-06-10 00:36:08 +00:00
parent 683648b5be
commit c384b66233

View File

@ -1867,8 +1867,9 @@ void nsWebShellWindow::ExecuteStartupCode()
// Execute the string in the onLoad attribute of the webshellElement.
nsString startupCode;
if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onload", startupCode)))
ExecuteJavaScriptString(startupCode);
// This is now triggered from elsewhere.
//if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onload", startupCode)))
// ExecuteJavaScriptString(startupCode);
if (mCallbacks)
mCallbacks->ConstructAfterJavaScript(mWebShell);