Closed Bug 1513156 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 14452 - WPT: CSS: Add cross-origin redirect tests.

Categories

(Core :: DOM: CSS Object Model, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 14452 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/14452
Details from upstream follow.

Matt Falkenhagen <falken@chromium.org> wrote:
>  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
>  https://github.com/whatwg/fetch/issues/737 and
>  https://github.com/whatwg/fetch/pull/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/1370162
>  WPT-Export-Revision: 6712abdf92bd4878be055105ca0d15028eeb14da
Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Ran 1 tests and 5 subtests
OK     : 1
PASS   : 4
FAIL   : 1

New tests that have failures or other problems:
/css/cssom/stylesheet-same-origin.sub.html
    Origin-clean check in cross-origin CSSOM Stylesheets (redirect from cross-origin to same-origin): FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/004e8fbaeead
[wpt PR 14452] - WPT: CSS: Add cross-origin redirect tests., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/77fbd9d5fcaa
[wpt PR 14452] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/004e8fbaeead
https://hg.mozilla.org/mozilla-central/rev/77fbd9d5fcaa
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.