1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
7 <p><b>BUG ID:
</b> <a href=
"rdar://problem/5523503">rdar://problem/
5523503</a> Safari crashes clicking scroll bar in FaceBook 'Trips'
</p>
9 <p id=
"test" style=
"background-color:skyblue; padding:3px;"><b>STEPS TO TEST:
</b>
10 Drag the scroll thumb in each of the vertical scrollbars below.
13 <p id=
"success" style=
"background-color:palegreen; padding:3px;"><b>TEST PASS:
</b>
14 Each scrollbar will disappear when clicked, along with the box containing it, but the browser will not crash as you continue to drag.
17 <p id=
"failure" style=
"background-color:#FF3300; padding:3px;"><b>TEST FAIL:
</b>
18 The scrollbar will disappear and Safari will crash as you continue dragging.
21 <div style=
"height: 120px;">
22 <div id=
"overflow" style=
"overflow: auto; height: 100px; width: 100px; background-color: lightblue;">
23 <div style=
"height: 200px;"></div>
27 <select multiple=
"true" id=
"listbox" style=
"height: 100px; width: 100px;">
30 <option>Three
</option>
34 <option>Seven
</option>
35 <option>Eight
</option>
41 var overflow
= document
.getElementById("overflow");
42 var listbox
= document
.getElementById("listbox");
44 function mousedown(event
)
47 setTimeout(event
.target
.id
+ '.style.display = "none"', 0);
50 overflow
.addEventListener("mousedown", mousedown
, false);
51 listbox
.addEventListener("mousedown", mousedown
, false);