chromium/content/test/data/sxg/prefetch.html

<title></title>
<body>
<script>
function addPrefetch(url) {
  let link = document.createElement('link');
  link.rel = 'prefetch';
  link.href = url;
  link.addEventListener('error', () => {
    document.title = 'FAIL';
  });
  document.body.appendChild(link);
}
const sxg_url = location.hash.substr(1);
addPrefetch(sxg_url);
new PerformanceObserver((list) => {
  for (const e of list.getEntries()) {
    if (e.name == sxg_url) {
      document.title = 'OK';
    }
  }
}).observe({ entryTypes: ['resource'] });
</script>