зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1084509 - gBrowser might not be available on all windows. r=ochameau
This commit is contained in:
Родитель
719072f90f
Коммит
0120974121
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче