robolectric/robolectric — pull request #1296 by stephanenicolas (2014-09-30 14:08:32+00:00)
Title: Issue #1212 : minimal handling of domains and subdomains in cookies

This should solve issue #1212 in a minimal way.

The problem is that the actual implementation of `getCookie(String url)` didn't take subdomains into account. If the domain starts with a `'.'` (dot char) then all cookies in this domain and subdomains should be returned.

The fix doesn't intend to provide a proper implementation of subdomain cookie handling but something that works well enough for testing...and for facebook api to be happy while testing.