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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/svg/use-no-contenttype-blocked.html

Issue 1706243002: Don't use SVG resource documents with an unrecognized MIME-type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use testharness; add unit test for extractMIMETypeFromMediaType 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 <svg>
5 <rect width="100" height="100" fill="green"/>
6 <use xlink:href="resources/echo-query.php?payload=%3C%3Fxml%20version%3D%271.0 %27%3F%3E%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Crect%20id%3D%2 7rectangle%27%20width%3D%27100%27%20height%3D%27100%27%20fill%3D%27red%27/%3E%3C /svg%3E#rectangle">
7 <script>
8 var t = async_test("No Content-Type for external &lt;use> is blocked.");
9 var useElement = document.querySelector('use');
10 useElement.onerror = t.step_func_done();
11 useElement.onload = t.unreached_func();
12 </script>
13 </use>
14 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698