| Kunihiko Sakamoto | 1a4049a | 2017-09-27 09:54:31 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <script nonce="abc" src="/resources/testharness.js"></script> |
| 3 | <script nonce="abc" src="/resources/testharnessreport.js"></script> |
| 4 | <script nonce="abc" src="/preload/resources/preload_helper.js"></script> |
| 5 | <script nonce="abc"> |
| 6 | var t = async_test('Makes sure that Link headers preload resources with CSP nonce'); |
| 7 | </script> |
| 8 | <script nonce="abc" src="resources/dummy.js?pipe=trickle(d5)&link-header-preload-nonce"></script> |
| 9 | <script nonce="abc"> |
| 10 | window.addEventListener('load', t.step_func(function() { |
| 11 | verifyPreloadAndRTSupport(); |
| Kunihiko Sakamoto | a52ae0c | 2019-01-25 12:04:12 | [diff] [blame^] | 12 | verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce", 0); |
| 13 | verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce", 1); |
| Kunihiko Sakamoto | 1a4049a | 2017-09-27 09:54:31 | [diff] [blame] | 14 | t.done(); |
| 15 | })); |
| 16 | </script> |