Bug 1115957 - Protect DevTools from empty browsers array. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2014-12-30 08:27:15 -06:00
parent dcdfc08c13
commit 8af0792934

View File

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