As stated in the WICG discussion, the workaround to prevent the infinite loops is to call the observer logic within the requestAnimationFrame.
So, this changeset do just that and adds cancelAnimationFrame call to the observer cleanup phase.
Test Plan
Since I'm not sure how to reproduce this locally I have only run the existing tests and launched website locally to confirm that I cannot spot any regression.
Why
Hopefully should fix #64
How
As stated in the WICG discussion, the workaround to prevent the infinite loops is to call the observer logic within the
requestAnimationFrame
.So, this changeset do just that and adds
cancelAnimationFrame
call to the observer cleanup phase.Test Plan
Since I'm not sure how to reproduce this locally I have only run the existing tests and launched website locally to confirm that I cannot spot any regression.