зеркало из https://github.com/mozilla/gecko-dev.git
Bug 271022 JavaScript Console Error: Opening Non-Sidebar Windows in the Sidebar ("searchBox has no properties")
p=gavin.sharp@gmail.com r=mconnor
This commit is contained in:
Родитель
2617691023
Коммит
f60706e4d8
|
@ -3491,7 +3491,8 @@ function asyncFocusSearchBox(event)
|
|||
{
|
||||
var sidebar = document.getElementById("sidebar");
|
||||
var searchBox = sidebar.contentDocument.getElementById("search-box");
|
||||
searchBox.focus();
|
||||
if (searchBox)
|
||||
searchBox.focus();
|
||||
sidebar.removeEventListener("load", asyncFocusSearchBox, true);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче