summaryrefslogtreecommitdiffstats
path: root/dom/base/test/fullscreen/file_fullscreen-bug-1798219.html
blob: beafd79661f70abaa3fb86a1c9971613000b905e (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() {
  document.documentElement.requestFullscreen();
  setTimeout(() => {
    while(true) {
      // slowdown event loop
    };
  }, 1);
  location.href = "https://example.org/browser/dom/base/test/fullscreen/dummy_page.html";
});
</script>