Commit c403f8b0 authored by Felipe Gomes's avatar Felipe Gomes
Browse files

Bug 827976 - browser-places.js doesn't need to get a reference to the hidden window. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D21080

--HG--
extra : moz-landing-system : lando
parent c1f177e4
......@@ -572,12 +572,12 @@ HistoryMenu.prototype = {
},
_getClosedTabCount() {
// SessionStore doesn't track the hidden window, so just return zero then.
if (window == Services.appShell.hiddenDOMWindow) {
try {
return SessionStore.getClosedTabCount(window);
} catch (ex) {
// SessionStore doesn't track the hidden window, so just return zero then.
return 0;
}
return SessionStore.getClosedTabCount(window);
},
toggleHiddenTabs() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment