Bug 368740 - crashtest

This commit is contained in:
Martijn Wargers 2013-01-26 21:28:56 +01:00
parent eb43010c46
commit 6fab5a8cfc
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<html>
<head>
<title>Testcase bug - Crash [@ nsIFrame::IsThemed] when trying to get the computed style of a button in iframe</title>
<style>
iframe {
width: 800px;
height: 400px;
}
</style>
</head>
<body>
This page should not crash Mozilla<br>
<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>
<script>
function getComputedStyles(){
var x=document.getElementById('content').contentDocument.getElementsByTagName('button')[0];
var style = document.defaultView.getComputedStyle(x, null).getPropertyValue('border-left-width');
}
setTimeout(getComputedStyles,300);
</script>
</body>
</html>

View File

@ -8,6 +8,7 @@ load 317561-1.html
load 330998-1.html
load 363950.html
load 368175-1.html
load 368740.html
load 379788-1.html
load 383979-1.xhtml
load 383979-2.html