Usually, I get a pop-up when I attempt to leave the edit form with unsaved changes (even after preview/diff, which causes a page reload using default settings).
But I noticed that this pop-up is not shown when the edit form shows the message session fail preview after clicking “Save changes” (this sometimes happens when I wait before submitting the form).