Users were generally confused about where to configure things like allowed URLs. Because they were reset in between each sessions, they needed to be applied repeatedly in a before block. This introduces an API for global configuration, which will be applied for every session. It also deprecates the per-session configuration methods, as those are less likely to be useful.
Because: * SocketDebugger is less useful than debug logging in the driver * SocketDebugger has been broken for several releases and is unused * The socket_class option was only used for injecting SocketDebugger This commit: * Removes the SocketDebugger class * Deprecates the socket_class option
HTTP response header field values are allowed to contain separators (which includes the colon) as long as they appear within quotes (http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2). This commit enables `Browser#response_headers` to handle a field value that contains a colon followed by a space (i.e., ": ") without breaking.
This allows one to specify the include and lib paths for gl and zlib. Example: gem install capybara-webkit -- \ --with-gl-dir=/nix/store/1sw1cyny213ih9dpdsq8h2kwqaqcm6vp-mesa-10.2.9 \ --with-zlib-dir=/nix/store/cb649pfdf14335d07jcfmsik7a1rsgbf-zlib-1.2.8 Fixes #695
* 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`.
Few weeks ago capybara introduced a new driver method that missed in our driver specification (jnicklas/capybara#1237). After updating gems versions, I run tests and seen an exception: `undefined method `browser_initialized?' for #<Capybara::Webkit::Driver:0xe9854a0>` We can resolve this and possible future updates just inherited from default web driver, for example, like it was implemented in poltergeist web driver (https://github.com/teampoltergeist/poltergeist/blob/master/lib/capybara/poltergeist/driver.rb#L4)
Fixes Capybara::Webkit::InvalidResponseError when nodes are missing.