diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 566dd1a7a..37245d8e3 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -789,6 +789,11 @@ vAPI.tabs.getAll = function(window) { continue; } + // This can happens if a tab-less window is currently opened. + if ( !tabBrowser.tabs ) { + continue; + } + for ( tab of tabBrowser.tabs ) { tabs.push(tab); }