Skip to content

Commit

Permalink
Bug 1513156 [wpt PR 14452] - WPT: CSS: Add cross-origin redirect test…
Browse files Browse the repository at this point in the history
…s., a=testonly

Automatic update from web-platform-tests
WPT: CSS: Add cross-origin redirect tests.

This adds tests that stylesheets that result from requests that were
redirected cross-origin are considered cross-origin.

Note that A->B->A redirects, which redirect from cross-origin to
same-origin, are considered cross-origin. See
whatwg/fetch#737 and
whatwg/fetch#834.

In Blink, we have redirect tests at
http/tests/security/cannot-read-cssrules-redirect.html. This WPT
addition will supersede that test, but I won't yet remove it since
it asserts the opposite for the A->B->A case. I can remove the test
when Blink changes to pass this WPT test.

Bug: 911974
Change-Id: Ie015c0390829299de7c29cff6685ddfcd774c66f
Reviewed-on: https://chromium-review.googlesource.com/c/1370162
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Commit-Queue: Matt Falkenhagen <falkenchromium.org>
Cr-Commit-Position: refs/heads/master{#615475}

--

wpt-commits: 600dd6cb4295d0bcfc867b8877287d485d3b0e4e
wpt-pr: 14452

UltraBlame original commit: 004e8fbaeead9b556d1972586b1a17e7647b09e8
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent 578d53f commit 32312c4
Showing 1 changed file with 369 additions and 90 deletions.
Loading

0 comments on commit 32312c4

Please sign in to comment.