editor/libeditor/html/crashtests/448329-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/448329-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <title>Testcase for bug 448329</title>
     1.7 +<script>
     1.8 +function go() {
     1.9 +  test("myFrame", "backcolor");
    1.10 +}
    1.11 +function test(id,cmd) {
    1.12 +  var doc = document.getElementById(id).contentDocument;
    1.13 +  doc.designMode = "On";
    1.14 +
    1.15 +  var s = doc.defaultView.getSelection();
    1.16 +  s.removeAllRanges();
    1.17 +  s.addRange(doc.createRange());
    1.18 +
    1.19 +  doc.queryCommandIndeterm(cmd);
    1.20 +}
    1.21 +</script>
    1.22 +</head>
    1.23 +<body onload="go()"><iframe id="myFrame"></iframe></body>
    1.24 +</html>

mercurial