mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 21:43:24 +00:00
changed name of onConstruction event to onload
This commit is contained in:
parent
ff5aa21d0d
commit
1c08963168
@ -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)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onConstruction="Startup()">
|
||||
onload="Startup()">
|
||||
|
||||
<html:style>
|
||||
#header {
|
||||
|
Loading…
Reference in New Issue
Block a user