gecko-dev/dom/base/crashtests/1396466.html
Jason Orendorff 2db41f075d Bug 1396466 - Remove Xray expando chains from the weakmap when transplanting nodes. r=bz
--HG--
extra : rebase_source : aa90385160666b155cc8dbad63bcfa34d3e50d32
extra : amend_source : 6b9ebda268a6198f5e0143e5449f9d62ef1aed76
2017-10-10 10:42:18 -05:00

21 lines
741 B
HTML

<script>
function addNew(i,t){
let n=document.createElement(t);
n.setAttribute('id', i);
document.getElementById('a').appendChild(n);
}
document.addEventListener("DOMContentLoaded", function(){
addNew('b','multicol');
addNew('c','marquee');
addNew('d','spacer');
document.getElementById('a').appendChild(document.createElement('iframe'));
document.getElementById('b').focus();
window.frames[0].document.body.appendChild(document.getElementById('c'));
let o=window.frames[0].document.body.childNodes[0];
document.getElementById('d').appendChild(o.parentNode.removeChild(o));
try{window.find('x')}catch(e){}
window.frames[0].document.body.appendChild(document.getElementById('c'));
});
</script>
<body id='a'></body>