{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/306","repository_url":"https://api.github.com/repos/mozilla/geckodriver","labels_url":"https://api.github.com/repos/mozilla/geckodriver/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/geckodriver/issues/306/comments","events_url":"https://api.github.com/repos/mozilla/geckodriver/issues/306/events","html_url":"https://github.com/mozilla/geckodriver/issues/306","id":185595625,"number":306,"title":"Certificate issue when accessing non-SSL page that contains SSL XHR request","user":{"login":"green-mdoerflinger","id":10849280,"avatar_url":"https://avatars.githubusercontent.com/u/10849280?v=3","gravatar_id":"","url":"https://api.github.com/users/green-mdoerflinger","html_url":"https://github.com/green-mdoerflinger","followers_url":"https://api.github.com/users/green-mdoerflinger/followers","following_url":"https://api.github.com/users/green-mdoerflinger/following{/other_user}","gists_url":"https://api.github.com/users/green-mdoerflinger/gists{/gist_id}","starred_url":"https://api.github.com/users/green-mdoerflinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/green-mdoerflinger/subscriptions","organizations_url":"https://api.github.com/users/green-mdoerflinger/orgs","repos_url":"https://api.github.com/users/green-mdoerflinger/repos","events_url":"https://api.github.com/users/green-mdoerflinger/events{/privacy}","received_events_url":"https://api.github.com/users/green-mdoerflinger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/geckodriver/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-27T07:44:23Z","updated_at":"2016-10-27T13:05:25Z","closed_at":"2016-10-27T12:59:23Z","body":"I am running selenium webdriver automation on Windows 10 using geckodriver 0.11.1 and Firefox 49.0.2 with selenium-webdriver 3.0.1 and Java 8. \r\n\r\nMy test opens a page thru HTTP (Unfortunately i am not allowed to publish the link used). The page itself sends a XHR request to an HTTPS Url. These requests fail with a certificate error:\r\n```\r\n<URL> uses an invalid security certificate.\r\n\r\nThe certificate is not trusted because the issuer certificate is unknown.\r\nThe server might not be sending the appropriate intermediate certificates.\r\nAn additional root certificate may need to be imported.\r\n\r\nError code: SEC_ERROR_UNKNOWN_ISSUER\r\n```\r\n\r\nHere is a screenshot of the network tab in the firefox debugger. \r\n![capture1](https://cloud.githubusercontent.com/assets/10849280/19758591/11be7da0-9c29-11e6-9d1c-fb837141f3a7.png)\r\n\r\nThe certificate is a Thawte certificate and in regular firefox sessions its accepted without a hitch. \r\n\r\n![capture2](https://cloud.githubusercontent.com/assets/10849280/19758633/41d2a2d2-9c29-11e6-850a-b987800dab8b.png)\r\n\r\nCan you find out what is causing this issue? The problems only appears on Windows 10. The same code runs fine on Windows 7 and OSX 10.11 using the same version of the tools involved. \r\n\r\nThanks,\r\nMarc\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/comments/256634905","html_url":"https://github.com/mozilla/geckodriver/issues/306#issuecomment-256634905","issue_url":"https://api.github.com/repos/mozilla/geckodriver/issues/306","id":256634905,"user":{"login":"andreastt","id":399120,"avatar_url":"https://avatars.githubusercontent.com/u/399120?v=3","gravatar_id":"","url":"https://api.github.com/users/andreastt","html_url":"https://github.com/andreastt","followers_url":"https://api.github.com/users/andreastt/followers","following_url":"https://api.github.com/users/andreastt/following{/other_user}","gists_url":"https://api.github.com/users/andreastt/gists{/gist_id}","starred_url":"https://api.github.com/users/andreastt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreastt/subscriptions","organizations_url":"https://api.github.com/users/andreastt/orgs","repos_url":"https://api.github.com/users/andreastt/repos","events_url":"https://api.github.com/users/andreastt/events{/privacy}","received_events_url":"https://api.github.com/users/andreastt/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T13:05:25Z","updated_at":"2016-10-27T13:05:25Z","body":"That sounds like a cross-site scripting problem. Exactly how do you send an XHR request? From the page itself, or from an injected script using geckodriver?"}}
{"actor":{"display_login":"andreastt"}}