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:
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 2009-03-27 11:06:43 -07:00
Родитель d278cedf1b
Коммит a5941f8933
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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);