aivaturi/Selenium-Remote-Driver — pull request #33 by gempesaw (2012-06-13 20:42:46+00:00)
Title: Fix: passing '0' for secure option in add_cookie incorrectly creates secure cookie

Previously, passing 0 for the 'secure' option in add_cookie would create a cookie that was secure. I was expecting that passing 1 or anything true would create a secure cookie, but that 0 would create an insecure cookie. Now, the cookie will only be secure if the value passed in for secure evaluates to true. Also added an associated test to guarantee that the cookie created with '0' for secure is in fact insecure.