mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
17 lines
754 B
HTML
17 lines
754 B
HTML
<!DOCTYPE html>
|
|
<script nonce="abc" src="/resources/testharness.js"></script>
|
|
<script nonce="abc" src="/resources/testharnessreport.js"></script>
|
|
<script nonce="abc" src="/preload/resources/preload_helper.js"></script>
|
|
<script nonce="abc">
|
|
var t = async_test('Makes sure that Link headers preload resources with CSP nonce');
|
|
</script>
|
|
<script nonce="abc">
|
|
window.addEventListener('load', t.step_func(function() {
|
|
t.step_timeout(function() {
|
|
verifyPreloadAndRTSupport();
|
|
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce", 0);
|
|
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce", 1);
|
|
t.done();
|
|
}, 5000);
|
|
}));
|
|
</script>
|