diff --git a/javascript/firefox-driver/js/nsCommandProcessor.js b/javascript/firefox-driver/js/nsCommandProcessor.js index 20025c292e2f6..5d77f2031976e 100644 --- a/javascript/firefox-driver/js/nsCommandProcessor.js +++ b/javascript/firefox-driver/js/nsCommandProcessor.js @@ -600,8 +600,6 @@ nsCommandProcessor.prototype.getWindowHandles = function(response) { this.searchWindows_('navigator:browser', function(win) { if (win.top && win.top.fxdriver) { res.push(win.top.fxdriver.id); - } else if (win.content) { - res.push(win.content.name); } }); response.value = res;