summaryrefslogtreecommitdiffstats
path: root/dom/base/test/fullscreen/file_fullscreen-bug-1798219.html
blob: 7490f1293653b8638ba9667af713a91c99e96ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<button>click me!</button>
<script>
let button = document.querySelector("button");
button.addEventListener("click", function(e) {
  document.documentElement.requestFullscreen();
  setTimeout(() => {
    while(true) {
      // slowdown event loop
    };
  }, 1);
  location.href = "https://example.org/browser/dom/base/test/fullscreen/dummy_page.html";
});
</script>