Index: LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html |
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html b/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html |
index 5ea3a5772bf486c38e3978a4dee52bb1e4a8a2a4..9859547681b765fd07359aabc39e764a1025f945 100644 |
--- a/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html |
+++ b/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html |
@@ -8,7 +8,10 @@ |
testRunner.dumpAsText(); |
var select = document.getElementById('bomb'); |
- var mouseEvent = document.createEvent("MouseEvents"); |
- mouseEvent.initMouseEvent("mousedown", true, true, document.defaultView, 1, select.offsetLeft + 1, select.offsetTop + 1, select.offsetLeft + 1, select.offsetTop + 1, false, false, false, false, 0, document); |
- select.dispatchEvent(mouseEvent); |
+ |
+ var rect = select.getBoundingClientRect(); |
+ if (window.eventSender) { |
+ eventSender.mouseMoveTo(rect.left + 1, rect.top + 1); |
+ eventSender.mouseDown(0); |
+ } |
</script> |