| <p>This tests changing the password field's type to text while the accessibility tree is turned on. WebKit should not crash.</p> |
| <input type="password" value="hello" onmouseup="this.setAttribute('type', 'text')"> |
| if (!window.accessibilityController) { |
| document.write('Click the text input on the left. WebKit should not crash.'); |
| accessibilityController.enableEnhancedAccessibility(true); |
| internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(); |
| const input = document.querySelector('input'); |
| document.write('PASS - WebKit did not crash.'); |