bug 287467 - flash game stops close tab from working, r+a=bsmedberg

This commit is contained in:
mconnor@steelgryphon.com 2007-08-21 22:00:23 -07:00
parent b22a77a6da
commit d0f41808dc

View File

@ -591,7 +591,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;