fix for bug 71822 r=pchen a=ben

workaround for focusedWindow being null
This commit is contained in:
alecf%netscape.com 2001-03-13 19:56:36 +00:00
parent 461525bb99
commit 799a8d7f6d

View File

@ -1015,7 +1015,9 @@ function BrowserViewSource()
if (focusedWindow == window)
focusedWindow = _content;
var docCharset = "charset=" + focusedWindow.document.characterSet;
dump("focusedWindow = " + focusedWindow + "\n");
if (focusedWindow)
var docCharset = "charset=" + focusedWindow.document.characterSet;
//now try to open a view-source window while inheriting the charset (if any)
openDialog("chrome://navigator/content/viewSource.xul",