Commit Graph

6 Commits

Author SHA1 Message Date
Sai To Yeung d92052fec3 Update UnknownUrlHandler warning to use non-deprecated methods 2015-07-21 21:24:46 -04:00
Matthew Horan 9868c4630e Do not consider data URIs unknown 2015-01-27 10:44:00 -05:00
Greg Leppert 0b67f67d0f Clarify warnings for blocked requests 2015-01-05 22:49:25 -05:00
Matthew Horan e5d840d4be Whitelist localhost on Driver#reset!
Fixes a regression due to "reset allowed/blocked URLs between specs"
(4491ba8).
2015-01-05 21:15:43 -05:00
Joe Ferris 4491ba80ae Reset allowed/blocked URLs between specs
* Prevents duplicates when using `before(:each)`
* Consistent with other settings
2014-12-08 11:35:38 -05:00
Joe Ferris 3804dd5406 Introduce allowed, blocked URL filters
* Adds `allow_url`, `block_url`, and `block_unknown_url` methods.
* Both allow_url and block_url accept wildcards.
* Any requests to blocked URLs will be blocked immediately.
* Blocked URLs take precedence over allowed URLs.
* By default, any requests to localhost and 127.0.0.1 are allowed.
* By default, any requests to unknown hosts will print a warning.
* `block_unknown_urls` causes unknown hosts to be silently blocked.
* `blacklisted_urls=` is deprecated in favor of `block_url`.
2014-12-05 12:48:03 -05:00