Skip to content

Commit 0ae8a97

Browse files
juangjandreastt
authored andcommitted
firefoxdriver: don't return window name
Never attempt to return the window name from getWindowHandles; only return driver-generated handles. Fixes #351. Signed-off-by: Andreas Tolfsen <[email protected]>
1 parent 457ce30 commit 0ae8a97

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

javascript/firefox-driver/js/nsCommandProcessor.js

-2
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,6 @@ nsCommandProcessor.prototype.getWindowHandles = function(response) {
600600
this.searchWindows_('navigator:browser', function(win) {
601601
if (win.top && win.top.fxdriver) {
602602
res.push(win.top.fxdriver.id);
603-
} else if (win.content) {
604-
res.push(win.content.name);
605603
}
606604
});
607605
response.value = res;

0 commit comments

Comments
 (0)