Undo not work when change a iframe attributes

Here is a reproduce sample:

This bug only appears on Safari

Type something on the editor, and use command+z. The undo not work.

If you remove the setInterval, it works again.

Use the undo history extension to get a reliable, properly integrated undo history.