2 if (window.layoutTestController)
3 layoutTestController.dumpAsText();
5 This test passes if the activeElement is the body rather than the input element
6 (which it would be if the sandbox didn't succeed in blocking autofocus).
7 <iframe sandbox="allow-scripts"
8 src="data:text/html,<input autofocus onfocus><script>alert(document.activeElement.tagName)</script>"></iframe>