| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 select::selection { color: red; } | 4 select::selection { color: red; } |
| 5 input[type="button"]::selection { color: red; } | 5 input[type="button"]::selection { color: red; } |
| 6 </style> | 6 </style> |
| 7 <script> | 7 <script> |
| 8 function test() { | 8 function test() { |
| 9 if (window.testRunner) | 9 if (window.testRunner) |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| 11 document.execCommand("SelectAll"); | 11 document.execCommand("SelectAll"); |
| 12 if (window.testRunner) | |
| 13 testRunner.display(); | |
| 14 } | 12 } |
| 15 </script> | 13 </script> |
| 16 </head> | 14 </head> |
| 17 <body onload="test()"> | 15 <body onload="test()"> |
| 18 This tests that this crasher is fixed:<br> | 16 This tests that this crasher is fixed:<br> |
| 19 http://bugs.webkit.org/show_bug.cgi?id=10139<br> | 17 http://bugs.webkit.org/show_bug.cgi?id=10139<br> |
| 20 REGRESSION: Reproducible crash when selecting a popup/button with ::selectio
n pseudostyle"<br> | 18 REGRESSION: Reproducible crash when selecting a popup/button with ::selectio
n pseudostyle"<br> |
| 21 <select> | 19 <select> |
| 22 <option>Option 1</option> | 20 <option>Option 1</option> |
| 23 </select> | 21 </select> |
| 24 <input type="button" value="button"></input> | 22 <input type="button" value="button"></input> |
| 25 </body> | 23 </body> |
| 26 </html> | 24 </html> |
| OLD | NEW |