914521.html 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <meta charset="UTF-8">
  5. <script>
  6. function f()
  7. {
  8. function spin() {
  9. for (var i = 0; i < 8; ++i) {
  10. var x = new XMLHttpRequest();
  11. x.open('GET', 'data:text/html,' + i, false);
  12. x.send();
  13. }
  14. }
  15. window.addEventListener("popstate", spin, false);
  16. window.close();
  17. window.location = "#c";
  18. finish();
  19. }
  20. function init()
  21. {
  22. SpecialPowers.pushPrefEnv({"set": [
  23. ["security.data_uri.block_toplevel_data_uri_navigations", false],
  24. ]}, start);
  25. }
  26. function start()
  27. {
  28. var html = "<script>" + f + "<\/script><body onload=f()>";
  29. var win = window.open("data:text/html," + encodeURIComponent(html), null, "width=300,height=300");
  30. win.finish = function() { document.documentElement.removeAttribute("class"); };
  31. }
  32. </script>
  33. </head>
  34. <body onload="init();"></body>
  35. </html>