summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html')
-rw-r--r--testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html b/testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html
new file mode 100644
index 0000000000..ddbe350354
--- /dev/null
+++ b/testing/web-platform/tests/signed-exchange/resources/sxg-navigation-timing.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<title>Navigation timing of SignedHTTPExchange</title>
+<script>
+window.addEventListener('message', (event) => {
+ event.data.port.postMessage({
+ location: document.location.href,
+ timing: JSON.stringify(performance.getEntriesByType('navigation')[0]),
+ is_fallback: false});
+}, false);
+</script>