Such a great feature, thanks!
I always disable the "Warn me when I leave an edit page with unsaved changes" option, but there was a risk with the VisualEditor and there is no way to enable that message only for the VisualEditor.
It's really great that you fixed that (seems to come from phab:T57370).