Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html xmlns="http://www.w3.org/1999/xhtml" xlink="http://www.w3.org/1999/xlink"> | |
| 2 <body> | |
| 3 <svg version="1.1" xlink="http://www.w3.org/1999/xlink" width="100%" xmlns=" http://www.w3.org/2000/svg"> | |
| 4 <g> | |
| 5 <defs> | |
|
kouhei (in TOK)
2014/03/17 09:39:27
Nit: indent consistently?
tasak
2014/03/18 10:43:26
Done.
| |
| 6 <font horiz-adv-x="224" id="embeded"> | |
| 7 <font-face font-family="embeded" id="fontWillBeRemoved"></font-face> | |
| 8 <glyph horiz-adv-x="1500" unicode="1"></glyph> | |
| 9 <glyph horiz-adv-x="1500" unicode="2"></glyph> | |
| 10 <glyph horiz-adv-x="1500" unicode="3"></glyph> | |
| 11 <glyph horiz-adv-x="1500" unicode="4"></glyph> | |
| 12 <glyph horiz-adv-x="1500" unicode="fi"></glyph> | |
| 13 </font> | |
| 14 </defs> | |
| 15 <g> | |
| 16 <use id="use"></use> | |
| 17 <text font-family="embeded" id="text">fi1234</text> | |
| 18 </g> | |
| 19 </g> | |
| 20 </svg> | |
| 21 </body> | |
| 22 <script> | |
| 23 // crbug.com/352178: Heap-use-after-free in WebCore::SVGFontFaceElement::associa tedFontElement. | |
| 24 // PASS if no crash occurs. | |
| 25 if (window.testRunner) | |
| 26 window.testRunner.dumpAsText(); | |
| 27 | |
| 28 document.execCommand("SelectAll"); | |
| 29 | |
| 30 function runTest() { | |
| 31 setTimeout(function() { | |
| 32 var fontWillBeRemoved = document.getElementById("fontWillBeRemoved"); | |
| 33 var use = document.getElementById("use"); | |
| 34 var text = document.getElementById("text"); | |
| 35 | |
| 36 fontWillBeRemoved.parentNode.removeChild(fontWillBeRemoved); | |
| 37 delete fontWillBeRemoved; | |
| 38 fontWillBeRemoved = null; | |
| 39 use.appendChild(text); | |
| 40 }, 0); | |
| 41 } | |
| 42 | |
| 43 document.addEventListener("DOMContentLoaded", runTest, false); | |
| 44 </script> | |
| 45 </html> | |
| 46 | |
| OLD | NEW |