mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00

Both InsertText and DeleteSelection do a placeholder transaction. When the placeholder transaction depth drops to zero, we fire input events (which in turn does a microtask checkpoint). So we can prevent that from happening mid-operation by scoping a larger placeholder transaction around both calls.