diff --git a/testing/marionette/driver.js b/testing/marionette/driver.js index 88a1055aabd2..2e761cd49bc2 100644 --- a/testing/marionette/driver.js +++ b/testing/marionette/driver.js @@ -262,12 +262,12 @@ Object.defineProperty(GeckoDriver.prototype, "windowHandles", { // Only return handles for browser windows if (tabBrowser && tabBrowser.tabs) { - tabBrowser.tabs.forEach(tab => { + for (let tab of tabBrowser.tabs) { let winId = this.getIdForBrowser(browser.getBrowserForTab(tab)); if (winId !== null) { hs.push(winId); } - }); + } } }