Bug 1084509 - gBrowser might not be available on all windows. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2014-10-20 14:00:00 -04:00
Родитель 719072f90f
Коммит 0120974121
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -285,7 +285,7 @@ BrowserTabList.prototype._getBrowsers = function*() {
};
BrowserTabList.prototype._getChildren = function(aWindow) {
return aWindow.gBrowser.browsers;
return aWindow.gBrowser ? aWindow.gBrowser.browsers : [];
};
BrowserTabList.prototype._isRemoteBrowser = function(browser) {