diff --git a/suite/browser/tabbrowser.xml b/suite/browser/tabbrowser.xml index 0df6309bec2..6a16659b479 100644 --- a/suite/browser/tabbrowser.xml +++ b/suite/browser/tabbrowser.xml @@ -556,7 +556,7 @@ var focusedWindow = document.commandDispatcher.focusedWindow; var saveFocus = false; - if (focusedWindow.top == window.content) { + if (focusedWindow && focusedWindow.top == window.content) { saveFocus = true; } else { var contentWindow = window;