Test for possible major requestAnimationFrame bug in iOS

It seems that if you turn an iOS device off (or it turns itself off), when you turn it back on requestAnimationFrame stops working when in a web app that is added to Home Screen (<meta name="apple-mobile-web-app-capable" content="yes" />). The function never fires, it seems as if it had not been restarted after stopping it on shutdown.

UPDATE: Turns our setTimeout also doesn't work. I guess somebody forgot to turn on the clock.

More info this on Open Radar.

Test

  1. open this page on an iOS device
  2. Add to Home Screen
  3. try touching the UI - you will get current timestamp for the event and element it was triggered on; after that you should also get requestAnimationFrame fired
  4. turn the device off using the power button or wait for autoshutdown
  5. turn the device back on
  6. try touching the UI again - you will see the event info, but not requestAnimationFrame fired

Confirmations

Tweet confirmations to @friedcell.