mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1115957 - Protect DevTools from empty browsers array. r=ochameau
This commit is contained in:
parent
dcdfc08c13
commit
8af0792934
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user