• David Van Cleve's avatar
    Reland "Trust Tokens: Add more browser tests covering issuance" · 8d8fcbd6
    David Van Cleve authored
    Note: This is an identical reland of crrev.com/c/2308860 except that it
    adds two conditionals to return early from tests when OOR-CORS is
    disabled. (The no-OOR-CORS code, aka Blink-CORS, is not supported in
    user builds in M85+ and is scheduled to be deleted in a week or two.)
    
    -- Original commit message:
    
    The first in a series of several CLs, this change expands the Trust
    Tokens browser tests to cover additional issuance cases:
    
    issuance to issuer with no keys -> expect error
    cross-origin issuance -> expect success
    cross-site issuance -> expect success
    issuance with number of associated origins at cap -> expect success iff
    the issuer is associated
    issuance after keys expire -> should fail
    issuance from non-https top-frame origin -> should fail
    issuance to non-https issuer -> should fail
    
    Bug: 1071293
    Change-Id: I4f1f6771c7f39efb4629acedc45d2b3b5bd1d95b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337424
    Commit-Queue: David Van Cleve <davidvc@chromium.org>
    Reviewed-by: default avatarCharlie Harrison <csharrison@chromium.org>
    Reviewed-by: default avatarTakashi Toyoshima <toyoshim@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#800009}
    8d8fcbd6
trust_token_browsertest.cc 33.2 KB