setTimeout Invoked Multiple Times
| Originator: | jdsalingerjr | ||
| Number: | rdar://22360634 | Date Originated: | 20-Aug-2015 10:12 AM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 9.0 beta |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
On iOS 9 UIWebView, any function passed into window.setTimeout will be invoked multiple times. It does not matter how long of a delay you set for the timeout.
Steps to Reproduce:
<!DOCTYPE html>
<html>
<head>
<script>
var i = 0;
setTimeout(function() {
i++;
console.log('setTimeout invoked ' + i + ' times');
}, 0);
</script>
</head>
<body>
</body>
</html>
Expected Results:
The console should only receive one log statement
Actual Results:
depending upon device, you will receive 5 / 6 (multiple) log statements
Version:
iOS 9.0 beta [13A4325c]
Notes:
Configuration:
iPad Air 15GB
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!