Filing this for a colleague who ran into it. In Safari, if you load an iframe while typing in a text input, undo stops working in the text input.
Here's a reproduction:
It's been mentioned on stackoverflow before:
Which has another reproduction:
The stackoverflow question implies it's also broken in Chrome. However, I've found this works correctly in latest Chrome and Firefox (didn't try IE).