mr*********@gmail.com wrote:
Our team have extracted code sample that caused abnormal Safari
termination. The crash seems to happen any time, when user selects an
option and closes alert popup. The version of Safari is 10.4.6.
Source code of html:
<html>
<body>
<div id='popup'>
<select size="10"
onchange="document.getElementById('popup').style.d isplay = 'none';
alert('aaa');">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</body>
</html>
Not in a position to test on Safari, but I would guess that it's trying
to resume execution from a point that has become unreadable or
otherwise inacessible. If you must use silly screen effects like that,
it may help to save the value of the select before hiding it:
<script type='text/javascript'>
function myFunc(v)
{
document.getElementById('popup').style.display = 'none'
//alert here or do something useful with 'v'
}
</script>
<div id='popup'>
<select size="10"
onchange="myFunc(this.options[this.selectedIndex].text)">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>