toolkit/components/extensions/test/xpcshell/data/file_stylesheet_cache_2.html
author Ted Campbell <tcampbell@mozilla.com>
Sat, 18 Sep 2021 15:53:59 +0000
changeset 592430 9adcbf4e1bd9385a3128de0501859a3f144cf672
parent 535084 64b42ac358e6a47ff68fa56faaa686851c612821
permissions -rw-r--r--
Bug 1731434 - Fix handling of double-faults while throwing overrecursed r=arai The JSContext::generatingError re-entrancy check can generate uncatchable exceptions while throwing errors. Fix ReportOverRecursed to reflect this. Differential Revision: https://phabricator.services.mozilla.com/D126034

<!doctype html>
<meta charset=utf-8>
<!-- The first one should hit the cache, the second one should not. -->
<link rel=stylesheet href=file_stylesheet_cache.css>
<script>
  "use strict";
  // This script guarantees that the load of the above stylesheet has happened
  // by now.
  //
  // Now we can go ahead and load the other one programmatically. It's
  // important that we don't just throw a <link> in the markup below to
  // guarantee
  // that the load happens afterwards (that is, to cheat the parser's speculative
  // load mechanism).
  const link = document.createElement("link");
  link.rel = "stylesheet";
  link.href = "file_stylesheet_cache.css?2";
  document.head.appendChild(link);
</script>