{"action":"closed","issue":{"url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/828","repository_url":"https://api.github.com/repos/teampoltergeist/poltergeist","labels_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/828/comments","events_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/828/events","html_url":"https://github.com/teampoltergeist/poltergeist/issues/828","id":190086661,"number":828,"title":"`url_whitelist` breaking specs","user":{"login":"kleinjm","id":2565158,"avatar_url":"https://avatars.githubusercontent.com/u/2565158?v=3","gravatar_id":"","url":"https://api.github.com/users/kleinjm","html_url":"https://github.com/kleinjm","followers_url":"https://api.github.com/users/kleinjm/followers","following_url":"https://api.github.com/users/kleinjm/following{/other_user}","gists_url":"https://api.github.com/users/kleinjm/gists{/gist_id}","starred_url":"https://api.github.com/users/kleinjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleinjm/subscriptions","organizations_url":"https://api.github.com/users/kleinjm/orgs","repos_url":"https://api.github.com/users/kleinjm/repos","events_url":"https://api.github.com/users/kleinjm/events{/privacy}","received_events_url":"https://api.github.com/users/kleinjm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-17T15:57:38Z","updated_at":"2016-11-17T20:36:30Z","closed_at":"2016-11-17T20:36:30Z","body":"Environment: Rails 3.2.13, Ruby 2.1.2, Capybara 2.4.3, Poltergeist 1.11.0\r\n\r\n`url_whitelist` causes my specs to run without loading anything. `url_blacklist` on the other hand works. I'd like to do a whitelist strategy so that we don't need to remember to block any new external dependencies.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2565158/20396332/d70378e6-acb3-11e6-895f-7f8e9a6423ad.png)\r\n\r\n```\r\nrequire 'capybara/poltergeist'\r\n\r\nCapybara.register_driver :poltergeist do |app|\r\n  options = {\r\n    js_errors: true,\r\n    window_size: [1200, 1000],\r\n    url_whitelist: [\r\n      \"http://cdn.jsdelivr.net/lodash/4.12.0/lodash.min.js\",\r\n      ...\r\n    ]\r\n  }\r\n  Capybara::Poltergeist::Driver.new(app, options)\r\nend\r\n\r\nCapybara.javascript_driver = :poltergeist\r\n```"}}
{"actor":{"display_login":"twalpole"}}