<!DOCTYPE html>
<html>
<!-- crbug.com/1160433 -->
<title>Test that popup, its owner element unassigned under a shadow root, is cleanup when the page is shutdown. </title>
<script src="../resources/picker-common.js"></script>
<script src="../../../resources/testdriver.js"></script>
<script src="../../../resources/testdriver-vendor.js"></script>
<canvas>
<video>
<select></select>
<input type="color" id="color" value="#126465">
</canvas>
<div>FAIL</div>
<form action="../resources/popup-close-after-navigation.html" id="form1"></form>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
window.onload = () => {
openPicker(document.querySelector('input'))
.then(() => {
form1.submit();
})
.catch(e => {
testRunner.notifyDone();
});
}
</script>
</body>
</html>