mmaxfield@apple.com | 9d9e71f | 2014-04-11 21:35:17 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | <ol> |
| 5 | <li>Type "word loadp" in the first box.</li> |
| 6 | <li>When the suggestion popup appears, click in the second box.</li> |
| 7 | </ol> |
| 8 | <p> |
| 9 | This test triggers a codepath when we are trying to determine a range around |
| 10 | the new correction word. We were remembering the location for the new word |
| 11 | by creating a Range from the beginning of the document to the beginning of |
| 12 | the new word. However, since the word is inside a shadow root, this Range |
| 13 | would collapse and be meaningless. Further processing using the range would |
| 14 | trigger ASSERTs and crash. |
| 15 | </p> |
| 16 | <p> |
| 17 | The test is successful if there is no crash. |
| 18 | </p> |
| 19 | <input id="t" type="text" spellCheck="true"> |
| 20 | <textarea id="a"></textarea> |
| 21 | </body> |
| 22 | </html> |