</div>
<pre id="test"> 1.Start Minefield with New Profile. 2.Select texts by alt + mouse dragging horizontaly from 'd' in the link above to far right of window. 3.Click on the selected text 4.Click empty area of page 5.Repeat STEP 2 to 4 till browser crashes. (at least 5 times)
<script type="application/javascript">
/** Test for Bug 560780 */
function selectByMouseThenClick(elm,startx,starty) {
// select some text var ctrl = !!navigator.platform.indexOf("Linux"); var alt = true; var x = startx;
synthesizeMouse(elm, x, starty, { type:"mousedown", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x += 100, starty, { type:"mousemove", ctrlKey:ctrl, altKey:alt });
synthesizeMouse(elm, x, starty, { type:"mouseup", ctrlKey:ctrl, altKey:alt });
// click on the selection
synthesizeMouse(elm, startx + 10, starty + 1, {});
// click empty area of the page
synthesizeMouse(document.getElementById('body'), 800, 800, {});
}
function runTest() { var e = document.getElementById('testlink');
selectByMouseThenClick(e,110,5);
selectByMouseThenClick(e,90,5);
selectByMouseThenClick(e,70,5);
selectByMouseThenClick(e,50,5);
selectByMouseThenClick(e,30,5);
selectByMouseThenClick(e,10,5);
is(seen_mousedown, 12, "got the mousedown events");
SimpleTest.finish();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.