{"action":"opened","issue":{"url":"https://api.github.com/repos/ysbaddaden/selenium-webdriver-crystal/issues/34","repository_url":"https://api.github.com/repos/ysbaddaden/selenium-webdriver-crystal","labels_url":"https://api.github.com/repos/ysbaddaden/selenium-webdriver-crystal/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ysbaddaden/selenium-webdriver-crystal/issues/34/comments","events_url":"https://api.github.com/repos/ysbaddaden/selenium-webdriver-crystal/issues/34/events","html_url":"https://github.com/ysbaddaden/selenium-webdriver-crystal/issues/34","id":395239180,"node_id":"MDU6SXNzdWUzOTUyMzkxODA=","number":34,"title":"Fail to raise alert on <script>alert(1)</script>","user":{"login":"bararchy","id":1631073,"node_id":"MDQ6VXNlcjE2MzEwNzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1631073?v=4","gravatar_id":"","url":"https://api.github.com/users/bararchy","html_url":"https://github.com/bararchy","followers_url":"https://api.github.com/users/bararchy/followers","following_url":"https://api.github.com/users/bararchy/following{/other_user}","gists_url":"https://api.github.com/users/bararchy/gists{/gist_id}","starred_url":"https://api.github.com/users/bararchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bararchy/subscriptions","organizations_url":"https://api.github.com/users/bararchy/orgs","repos_url":"https://api.github.com/users/bararchy/repos","events_url":"https://api.github.com/users/bararchy/events{/privacy}","received_events_url":"https://api.github.com/users/bararchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-02T12:52:51Z","updated_at":"2019-01-02T12:52:51Z","closed_at":null,"author_association":"NONE","body":"Created a small HTML template with \r\n\r\n```crystal\r\nserver = HTTP::Server.new do |context|\r\n  context.response.content_type = \"text/html\"\r\n  html = <<-EOF\r\n    <html>\r\n      <head>\r\n        <title>ALERT</title>\r\n      </head>\r\n      <body>\r\n        <h1>Hello!</h1>\r\n        <div>\r\n          Hello and welcome to my site!\r\n        </div>\r\n        <script>alert(1)</script>\r\n      </body>\r\n    </html>\r\n  EOF\r\n  context.response.print(html)\r\nend\r\n\r\nserver.bind_tcp 8000\r\n\r\nserver.listen\r\n```\r\n\r\nI did `@session.url` to the relevant address and tried both \r\n```crystal\r\nAlert.new(@session)\r\n# And\r\n@session.alert\r\n```\r\n\r\nand they both raised `NoAlertOpenError`.\r\n\r\nIs it just me? is this a bug in selenium? a different variant of `on_click` did work and raised an Alert object."}}
{"actor":{"display_login":"bararchy"}}