Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <title>SRI on cross origin CORS enabled style, without CORS fetch</title>
4 <style>.id1 { background-color: red }</style>
5 <link rel="stylesheet"
6 integrity="ni:///sha256;fy1lC6jbv7rOG6Flb00n5PYLggqe25IcE6QlZf8KtwI="
7 href="http://localhost:8000/security/resources/cors-style.php"></link>
8 </head>
9 <body>
10 <script src="/resources/testharness.js"></script>
11 <script src="/resources/testharnessreport.js"></script>
12 <script>
13 window.onload = function () {
14 var ele = document.getElementById('id1');
15 var divBackground = window.getComputedStyle(ele, null).getPropertyVa lue('background-color');
16 assert_equals(divBackground, "rgb(255, 0, 0)");
17 done();
18 };
19 </script>
20 <div id="id1" class="id1"></div>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698