| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 4 <head> |
| 3 <style> | 5 <style> |
| 4 *{ | 6 *{ |
| 5 /* Note: applying a text-decoration to the body is necessary to | 7 /* Note: applying a text-decoration to the body is necessary to |
| 6 * cause the crash, as is having the document parsed as xhtml. | 8 * cause the crash, as is having the document parsed as xhtml. |
| 7 */ | 9 */ |
| 8 text-decoration:underline; | 10 text-decoration:underline; |
| 9 } | 11 } |
| 10 </style> | 12 </style> |
| 11 <script> | 13 <script> |
| 12 function go() { | 14 function go() { |
| 13 if (window.testRunner) | 15 if (window.testRunner) |
| 14 testRunner.dumpAsText(); | 16 testRunner.dumpAsText(); |
| 15 document.execCommand("SelectAll"); | 17 document.execCommand("SelectAll"); |
| 16 document.execCommand("JustifyRight"); | 18 document.execCommand("JustifyRight"); |
| 17 document.execCommand("JustifyNone"); | 19 document.execCommand("JustifyNone"); |
| 18 } | 20 } |
| 19 </script> | 21 </script> |
| 20 </head> | 22 </head> |
| 21 <body onload="go()" contenteditable="true"> | 23 <body onload="go()" contenteditable="true"> |
| 22 execCommand("JustifyNone") was crashing inside WebCore::ApplyStyleCommand::a
pplyBlockStyle.<br/> | 24 execCommand("JustifyNone") was crashing inside WebCore::ApplyStyleCommand::a
pplyBlockStyle.<br/> |
| 23 See https://bugs.webkit.org/show_bug.cgi?id=51639<br/> | 25 See https://bugs.webkit.org/show_bug.cgi?id=51639<br/> |
| 24 The test has passed if it does not crash.<br/><br/> | 26 The test has passed if it does not crash.<br/><br/> |
| 25 PASS | 27 PASS |
| 26 </body> | 28 </body> |
| 27 </html> | 29 </html> |
| OLD | NEW |