mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
3e623bcd7c
Bug 1443492 made us flush the parent document for cross-doc getComputedStyle situations. That can kill the shell we're flushing, let's handle that case gracefully. MozReview-Commit-ID: HpFsPQvjKcZ
13 lines
358 B
HTML
13 lines
358 B
HTML
<script>
|
|
o0 = document.createElement('iframe');
|
|
o1 = document.createElement('iframe');
|
|
document.documentElement.appendChild(o0);
|
|
o2 = o0.getSVGDocument();
|
|
o3 = o2.childNodes[0];
|
|
o3.appendChild(o1);
|
|
o3.scrollHeight;
|
|
o3.hidden = true;
|
|
o4 = window.getComputedStyle(o1.contentDocument.childNodes[0].childNodes[1], ":z");
|
|
o4.length;
|
|
</script>
|