{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2715","labels_url":"https://api.github.com/repos/angular/protractor/issues/2715/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2715/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2715/events","html_url":"https://github.com/angular/protractor/issues/2715","id":117334725,"number":2715,"title":"wrong value for getAllWindowHandles on Firefox","user":{"login":"prbaron","id":1153856,"avatar_url":"https://avatars.githubusercontent.com/u/1153856?v=3","gravatar_id":"","url":"https://api.github.com/users/prbaron","html_url":"https://github.com/prbaron","followers_url":"https://api.github.com/users/prbaron/followers","following_url":"https://api.github.com/users/prbaron/following{/other_user}","gists_url":"https://api.github.com/users/prbaron/gists{/gist_id}","starred_url":"https://api.github.com/users/prbaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prbaron/subscriptions","organizations_url":"https://api.github.com/users/prbaron/orgs","repos_url":"https://api.github.com/users/prbaron/repos","events_url":"https://api.github.com/users/prbaron/events{/privacy}","received_events_url":"https://api.github.com/users/prbaron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/protractor/labels/status:%20needs%20investigation","name":"status: needs investigation","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T11:24:46Z","updated_at":"2015-12-02T16:52:15Z","closed_at":null,"body":"Hello,\r\nI spotted that `browser.getAllWindowHandles()` does not give the same value on Chrome and Firefox.\r\n\r\nBased on this test : \r\n```\r\n'use strict';\r\n\r\ndescribe('', function () {\r\n  \r\n  it('', function () {\r\n    browser.sleep(3000);\r\n    \r\n    \r\n    var firstLink = Locator.elementByTagName('a');\r\n    browser.getWindowHandle().then(function (handles) {\r\n      console.log('handle', handles); // 1\r\n    });\r\n    \r\n    // for Windows\r\n    // browser.actions().keyDown(protractor.Key.CONTROL).click(firstLink).keyUp(protractor.Key.CONTROL).perform();\r\n    browser.actions().keyDown(protractor.Key.COMMAND).click(firstLink).keyUp(protractor.Key.COMMAND).perform();\r\n    \r\n    browser.getAllWindowHandles().then(function (handles) {\r\n      console.log('handles', handles, handles.length); // 2 \r\n      return browser.switchTo().window(handles[1]); \r\n    })\r\n    .then(function () {\r\n      browser.get('http://juliemr.github.io/protractor-demo/')\r\n    });\r\n    \r\n    browser.getWindowHandle().then(function (handles) {\r\n      console.log('handle', handles); //3\r\n    });\r\n  });\r\n});\r\n```\r\n\r\nI have the following logs for Chrome : \r\n```\r\n1. CDwindow-C54C22C0-3F83-4114-ABF9-7A5EFD4BB43F\r\n2. Array [\r\n  'CDwindow-C54C22C0-3F83-4114-ABF9-7A5EFD4BB43F',\r\n  'CDwindow-DD5DAC61-DDF4-4880-BCA9-AD3A754C9836' ] 2\r\n3. CDwindow-DD5DAC61-DDF4-4880-BCA9-AD3A754C9836\r\n```\r\nHere is for Firefox : \r\n```\r\n1. {ca4f411a-a853-e34b-abd3-c9e01bbc56a0}\r\n2. Array [ '{ca4f411a-a853-e34b-abd3-c9e01bbc56a0}' ] 1\r\n```\r\n\r\nThen the tests with the message `Failed: null value in entry: name=null`.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/161362268","html_url":"https://github.com/angular/protractor/issues/2715#issuecomment-161362268","issue_url":"https://api.github.com/repos/angular/protractor/issues/2715","id":161362268,"user":{"login":"prbaron","id":1153856,"avatar_url":"https://avatars.githubusercontent.com/u/1153856?v=3","gravatar_id":"","url":"https://api.github.com/users/prbaron","html_url":"https://github.com/prbaron","followers_url":"https://api.github.com/users/prbaron/followers","following_url":"https://api.github.com/users/prbaron/following{/other_user}","gists_url":"https://api.github.com/users/prbaron/gists{/gist_id}","starred_url":"https://api.github.com/users/prbaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prbaron/subscriptions","organizations_url":"https://api.github.com/users/prbaron/orgs","repos_url":"https://api.github.com/users/prbaron/repos","events_url":"https://api.github.com/users/prbaron/events{/privacy}","received_events_url":"https://api.github.com/users/prbaron/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T16:52:15Z","updated_at":"2015-12-02T16:52:15Z","body":"Hi,\r\n\r\nHere is a project to see the problem : https://github.com/prbaron/protractor-demo-tab.\r\n\r\nIt is working on Chrome, but not on Firefox."}}