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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid.html

Issue 811703006: Added more useful message error message for plugin-types CSP directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: plugin-types error msg improvement Created 5 years, 11 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src='../resources/multiple-iframe-plugin-test.js'></script> 4 <script src='../resources/multiple-iframe-plugin-test.js'></script>
5 <script> 5 <script>
6 var tests = [ 6 var tests = [
7 [false, 'plugin-types;'], 7 [false, 'plugin-types;'],
8 [false, 'plugin-types ;'], 8 [false, 'plugin-types ;'],
9 [false, 'plugin-types \'none\''],
9 [false, 'plugin-types text'], 10 [false, 'plugin-types text'],
10 [false, 'plugin-types text/'], 11 [false, 'plugin-types text/'],
11 [false, 'plugin-types /text'], 12 [false, 'plugin-types /text'],
12 [false, 'plugin-types text//plain'], 13 [false, 'plugin-types text//plain'],
13 [false, 'plugin-types text/plainapplication/nospace'], 14 [false, 'plugin-types text/plainapplication/nospace'],
14 [true, 'plugin-types text application/x-webkit-test-netscape'], 15 [true, 'plugin-types text application/x-webkit-test-netscape'],
15 ]; 16 ];
16 </script> 17 </script>
17 </head> 18 </head>
18 <body onload="testExperimentalPolicy()"> 19 <body onload="testExperimentalPolicy()">
19 <p> 20 <p>
20 This tests our handling of invalid `plugin-types` CSP directives. 21 This tests our handling of invalid `plugin-types` CSP directives.
21 Consider this test passing if each of the following frames contains 22 Consider this test passing if each of the following frames contains
22 either "PASS" or no text at all. 23 either "PASS" or no text at all.
23 </p> 24 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698