https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 10f69dbaa99bb91a7cf9f290fff6503b0ab56ee4 authored by James Graham on 17 September 2018, 15:10:55 UTC
Correctly handle ScriptTimeoutException in the WebDriver executor
Tip revision: 10f69db
dropSecure.py
from helpers import makeDropCookie, readParameter, setNoCacheAndCORSHeaders

def main(request, response):
    """Respond to `/cookie/drop/secure` by dropping the two cookie set by
    `setSecureTestCookies()`"""
    headers = setNoCacheAndCORSHeaders(request, response)

    # Expire the cookies, and return a JSON-encoded success code.
    headers.append(makeDropCookie("alone_secure", False))
    headers.append(makeDropCookie("alone_insecure", False))
    return headers, '{"success": true}'
back to top