summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_suppressed_events_and_scrolling.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/file_suppressed_events_and_scrolling.html')
-rw-r--r--dom/base/test/file_suppressed_events_and_scrolling.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/dom/base/test/file_suppressed_events_and_scrolling.html b/dom/base/test/file_suppressed_events_and_scrolling.html
new file mode 100644
index 0000000000..edf6793dfb
--- /dev/null
+++ b/dom/base/test/file_suppressed_events_and_scrolling.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<html>
+ <body><iframe srcdoc="
+ <html>
+ <head>
+ <script>
+ onload = function() {
+ // Ensure the layout is up-to-date and painted.
+ requestAnimationFrame(function() {
+ setTimeout(run);
+ })
+ }
+
+ function run() {
+ parent.opener.postMessage('doscroll', '*');
+ window.onscroll = function() {
+ parent.opener.postMessage('didscroll', '*');
+ }
+ let xhr = new XMLHttpRequest();
+ xhr.open('GET', 'slow.sjs', false);
+ xhr.send();
+ parent.opener.postMessage('xhr_done', '*');
+ }
+ </script>
+ </head>
+ <body style='height: 3000px; border: 1px solid black;'>
+ </body>
+ </html>
+ "></iframe></body>
+</html>