• Joshua Bell's avatar
    Add test coverage for setting cookie priority via document.cookie · 1d432bea
    Joshua Bell authored
    Chrome supports a non-standard "priority" option for cookies, which is
    used to prioritize eviction when the cookie jar is full. Since the
    document.cookie setter just passes the cookie string through IPC to
    RenderFrameMessageFilter::SetCookie and, after various hops, into the
    net::CookieStore, the option is implicitly supported even though it was
    intended primarily for use by the Set-Cookie HTTP header.
    
    Add test coverage so we don't unintentionally regress support for
    this if, for example, we change the way document.cookie passes
    cookies into net::CookieStore.
    
    Change-Id: I0084d2f177ca7dac88a3f20603198c689351c4a2
    Reviewed-on: https://chromium-review.googlesource.com/1116059Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Joshua Bell <jsbell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#570874}
    1d432bea
browser_test_utils.cc 102 KB