Bug 1776680 [wpt PR 34603] - [@container] Test invalidation of font-relative units...
[gecko.git] / dom / events / test / file_focus_blur_on_click_in_cross_origin_iframe.html
blob09eab8fc16c1ef4bd4b1e7c38cb7cec9efc7ac27
1 <!DOCTYPE html>
2 <script src="/tests/SimpleTest/paint_listener.js"></script>
3 <script src="/tests/gfx/layers/apz/test/mochitest/apz_test_utils.js"></script>
4 <style>
5 html, body {
6 height: 100%;
7 margin: 0px;
8 padding: 0px;
10 </style>
11 <div style="width:100%;height:100%;background-color:blue;"></div>
12 <script>
13 document.querySelector("div").addEventListener("click", event => {
14 parent.postMessage("click", "*");
15 });
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", "*");
28 </script>