2 <script src=
"/tests/SimpleTest/paint_listener.js"></script>
3 <script src=
"/tests/gfx/layers/apz/test/mochitest/apz_test_utils.js"></script>
11 <div style=
"width:100%;height:100%;background-color:blue;"></div>
13 document
.querySelector("div").addEventListener("click", event
=> {
14 parent
.postMessage("click", "*");
16 window
.onload
= async () => {
17 // Wait for APZ state stable so that mouse event handling APZ works properly
18 // in out-of-process iframes.
19 await
promiseApzFlushedRepaints();
20 parent
.postMessage("ready", "*");
22 document
.body
.onfocus
= () => {
23 parent
.postMessage("focus", "*");
25 document
.body
.onblur
= () => {
26 parent
.postMessage("blur", "*");