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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-audio-as-script.html

Issue 2294283002: Stop sniffing 'audio/', 'video/', and 'text/csv' into script. (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-text-as-script.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <title>Block 'audio/*' when served as script.</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 window.scriptsSuccessfullyLoaded = 0;
8 </script>
9 </head>
10 <body>
11 <script src="resources/script-with-header.pl?mime=audio/aiff&amp;options=inv alid"></script>
12 <script src="resources/script-with-header.pl?mime=AudiO/midi&amp;options=inv alid"></script>
13 <script src="resources/script-with-header.pl?mime=AUDIO/wav&amp;options=inva lid"></script>
14 <script src="resources/script-with-header.pl?mime=audio/x-wav&amp;options=in valid"></script>
15 <script src="resources/script-with-header.pl?mime=audio/whatever+xml&amp;opt ions=invalid"></script>
16 <script>
17 test(function () {
18 assert_equals(window.scriptsSuccessfullyLoaded, 0);
19 }, "All audio/* scripts should be blocked.");
20 </script>
21 </body>
22 </html>
23
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-text-as-script.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698