Bug 877010 - fix infinite loop of overflow events
Merge pull request #10096 from davidflanagan/bug877010

Bug 877010 - fix infinite loop of overflow events r=samjoch, andreasgal