368740.html (717B)
1 <html> 2 <head> 3 <title>Testcase bug - Crash [@ nsIFrame::IsThemed] when trying to get the computed style of a button in iframe</title> 4 5 <style> 6 iframe { 7 width: 800px; 8 height: 400px; 9 } 10 </style> 11 </head> 12 <body> 13 This page should not crash Mozilla<br> 14 <iframe id="content" src="data:text/html;charset=utf-8,%3Chtml%3E%3Chead%3E%3C/head%3E%3Cbody%3E%0A%3Cbutton%3E%3C/button%3E%0A%3C/body%3E%3C/html%3E"></iframe> 15 16 <script> 17 function getComputedStyles(){ 18 var x=document.getElementById('content').contentDocument.getElementsByTagName('button')[0]; 19 var style = document.defaultView.getComputedStyle(x).getPropertyValue('border-left-width'); 20 } 21 setTimeout(getComputedStyles,300); 22 </script> 23 24 </body> 25 </html>