зеркало из https://github.com/mozilla/gecko-dev.git
Bug 485539 - added guard to the tab engine to handle the case where there are undefined items in tabContainer.childNodes.
This commit is contained in:
Родитель
d278cedf1b
Коммит
a5941f8933
|
@ -226,6 +226,10 @@ TabStore.prototype = {
|
|||
let window = enumerator.getNext();
|
||||
let tabContainer = window.getBrowser().tabContainer;
|
||||
for each (let tabChild in tabContainer.childNodes) {
|
||||
if (!tabChild) {
|
||||
this._log.warn("Undefined item in tabContainer.childNodes.");
|
||||
continue;
|
||||
}
|
||||
if (!tabChild.QueryInterface)
|
||||
continue;
|
||||
let tab = tabChild.QueryInterface(Ci.nsIDOMNode);
|
||||
|
|
Загрузка…
Ссылка в новой задаче