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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/svg/svg-policy-with-resource.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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 <html>
3 <head>
4 <title>svg-policy-with-resource</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script>
8 <script src="../support/alertAssert.sub.js?alerts=[]"></script>
9 <script>
10 window.addEventListener("message", function(event) {
11 alert_assert(event.data);
12 }, false);
13 window.addEventListener('load', function() {
14 setTimeout(function() {
15 log("TEST COMPLETE");
16 }, 0);
17 });
18 </script>
19 </head>
20
21 <body>
22 <p>Tests that an SVG loaded in an iframe with a policy enforces it, not
23 the policy enforced by this parent frame. The SVG should render and
24 not redirect to a different resource.</p>
25 <iframe name="test_target" id="test_iframe" src="scripted.svg"></iframe>
26 <object type="image/svg+xml" data="scripted.svg"></object>
27 <div id="log"></div>
28 </body>
29
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698