mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
fix for bug 71822 r=pchen a=ben
workaround for focusedWindow being null
This commit is contained in:
parent
461525bb99
commit
799a8d7f6d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user