зеркало из https://github.com/mozilla/pjs.git
Stop onload handler firing twice
This commit is contained in:
Родитель
af8311bbc4
Коммит
be7a3045d2
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче