commit | f2128a1506a602ec711696169ade34aa9f771997 | [log] [tgz] |
---|---|---|
author | Matt Falkenhagen <falken@chromium.org> | Tue Dec 11 10:25:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 11 10:25:14 2018 |
tree | 4dea1edffc069ebbd9b67d2eb15934b7c5ca6004 | |
parent | ad82ea677e33c49e7b4690bb1653c5e2f5b9c099 [diff] |
WPT: CSS: Add same-origin tests for loading error stylesheets. This adds a test that a stylesheet that failed to load is considered cross-origin. That is, accessing |styleSheet.rules| throws a SecurityError. This aligns with the specifications: - cssRules checks the `origin-clean` flag: https://drafts.csswg.org/cssom/#dom-cssstylesheet-cssrules - This is set to true iff CORS-same-origin: https://html.spec.whatwg.org/multipage/links.html#link-type-stylesheet - CORS-same-origin is false for "error" responses: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-same-origin Bug: 911974 Change-Id: I558e6d3dfa564b15284c393ffc35b80f54a9bc4e Reviewed-on: https://chromium-review.googlesource.com/c/1371307 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#615479}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .