Bug 829670 - Fix some 'function does not always return a value' warnings on startup. r=wesj

This commit is contained in:
Kartikaya Gupta 2013-01-11 14:12:38 -05:00
parent 7aefd397af
commit 471ea0aa0b

View File

@ -980,7 +980,7 @@ var BrowserApp = {
getFocusedInput: function(aBrowser, aOnlyInputElements = false) {
let doc = aBrowser.contentDocument;
if (!doc)
return;
return null;
let focused = doc.activeElement;
while (focused instanceof HTMLFrameElement || focused instanceof HTMLIFrameElement) {