mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 19:20:13 +00:00
Stop onload handler firing twice
This commit is contained in:
parent
683648b5be
commit
c384b66233
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user