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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/svg/svg-in-object-in-sandboxed-iframe.html

Issue 1645313002: Don't apply the SandboxPlugins flag until we know a plugin will be used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Testharness-based test Created 4 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 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 var t = async_test("SVG in <object> in sandboxed <iframe> is not blocked.");
6 onmessage = t.step_func_done(function(message) {
7 assert_equals(message.data, 'load');
8 var iframe = document.querySelector('iframe');
9 var containedObject = iframe.contentDocument.querySelector('object');
10 var svgRoot = containedObject.contentDocument.documentElement;
11 assert_equals(svgRoot.localName, "svg");
12 assert_equals(svgRoot.namespaceURI, "http://www.w3.org/2000/svg");
13 });
14 </script>
15 <iframe sandbox="allow-same-origin allow-scripts" src="resources/object-svg.html "
16 style="border: none; margin: 0"
17 scrolling="no"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698