<script src="/common/PrefixedPostMessage.js"></script>
<script>
var prefixedMessage = new PrefixedMessageResource();
var max = 150, attempts = 0;

const urlParams = new URLSearchParams(location.search);
const expected_innerWidth = urlParams.get('expected_innerWidth');
const expected_innerHeight = urlParams.get('expected_innerHeight');
const expected_screenX = urlParams.get('expected_screenX');
const expected_screenY = urlParams.get('expected_screenY');
let should_wait_until_settled = expected_innerWidth ===