• Alex Turner's avatar
    Add Web Platform Tests for the Split Cache · 15c6f4fb
    Alex Turner authored
    We add a web platform test for the cache when it is partitioned by top-
    frame origin. The test caches a resource, then attempts to load it in
    a popup window. With the split cache, if the popup window is
    cross-origin, we would expect that request to be a cache miss. We
    compare the number of requests that hit the server to our expectations.
    To enable these tests, the existing framework is slightly refactored,
    including to respond to CORS preflight requests.
    
    The virtual test suites virtual/split-http-cache and
    virtual/not-split-http-cache explicitly test the cases of a split and
    not-split cache, respectively. The default test is disabled as its
    result depends on whether the split cache feature is enabled.
    
    Bug: 981970
    Change-Id: I049fdaec4aebcbdeebdd3c77d13d6ca420d1bd62
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1890952Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
    Reviewed-by: default avatarShivani Sharma <shivanisha@chromium.org>
    Commit-Queue: Alex Turner <alexmt@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#714236}
    15c6f4fb
README.md 217 Bytes