mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 503936. Add test.
--HG-- extra : rebase_source : 9885ac8a59ade08ef02fc86b8a3c65169b72c92c
This commit is contained in:
parent
3316ab0a82
commit
df51955670
29
layout/base/crashtests/503936-1.html
Normal file
29
layout/base/crashtests/503936-1.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
|
||||
function boom()
|
||||
{
|
||||
var st = document.getElementById("s").firstChild
|
||||
|
||||
var range = document.createRange();
|
||||
range.setStart(document.documentElement, 0);
|
||||
range.setEnd(st, 1);
|
||||
range.deleteContents()
|
||||
|
||||
try { range.surroundContents(st); } catch(e) { }
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
div:first-letter { float: left; }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body onload="boom();"><div><span id="s">Foo</span></div></body>
|
||||
|
||||
</html>
|
@ -261,3 +261,4 @@ load 497519-1.xhtml
|
||||
load 497519-2.xhtml
|
||||
load 500467-1.html
|
||||
load 501878-1.html
|
||||
load 503936-1.html
|
||||
|
Loading…
Reference in New Issue
Block a user