| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <style> |
| *{ |
| /* Note: applying a text-decoration to the body is necessary to |
| * cause the crash, as is having the document parsed as xhtml. |
| */ |
| text-decoration:underline; |
| } |
| </style> |
| <script> |
| function go() { |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| document.execCommand("SelectAll"); |
| document.execCommand("JustifyRight"); |
| document.execCommand("JustifyNone"); |
| } |
| </script> |
| </head> |
| <body onload="go()" contenteditable="true"> |
| execCommand("JustifyNone") was crashing inside WebCore::ApplyStyleCommand::applyBlockStyle.<br/> |
| See https://bugs.webkit.org/show_bug.cgi?id=51639<br/> |
| The test has passed if it does not crash.<br/><br/> |
| PASS |
| </body> |
| </html> |