diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 1a2acb6023a..476dce97906 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -870,7 +870,7 @@ void nsWebShellWindow::ExecuteJavaScriptString(nsString& aJavaScript) /** - * Execute window onConstruction handler + * Execute window onLoad handler */ void nsWebShellWindow::ExecuteStartupCode() { @@ -883,9 +883,9 @@ void nsWebShellWindow::ExecuteStartupCode() if (mCallbacks) mCallbacks->ConstructBeforeJavaScript(mWebShell); - // Execute the string in the onConstruction attribute of the webshellElement. + // Execute the string in the onLoad attribute of the webshellElement. nsString startupCode; - if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onConstruction", startupCode))) + if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onload", startupCode))) ExecuteJavaScriptString(startupCode); if (mCallbacks) diff --git a/mozilla/xpfe/browser/src/navigator.xul b/mozilla/xpfe/browser/src/navigator.xul index b3dc7719151..4d5a5d9a6f7 100644 --- a/mozilla/xpfe/browser/src/navigator.xul +++ b/mozilla/xpfe/browser/src/navigator.xul @@ -5,7 +5,7 @@ + onload="Startup()"> #header {