GNOME Bugzilla – Bug 333021
Unsaved form confirmation not used for back/forward
Last modified: 2016-02-29 20:59:02 UTC
When closing a tab, Ephy asks for you confirmation if there are any unsubmitted form contents. This dialog should also be triggered when navigating back and forward (by button, by gesture, by using a keyboard shortcut, ...).
I don't think that this s useful for Forward, when Forward means 'submit form'.
When Forward would submit a form, it should be with the original form values, not with anything new you typed, so I think it should always ask for confirmation.
Okay, what Reinout says makes sense. But what about Back?
Just in the general case, "navigating away" from a page should trigger the warning. However in the current situation the warning is displayed too often when it's false alarm (the user didn't input any information at all). This should be solved first.
Reinout, do you still think this is a good idea? I'm not sure I agree, because normally no data is lost on back/forward, it goes into page cache and is restored instantly, so the action is not normally destructive. But I guess that won't work on some pages, and maybe it's useful to have the warning anyway.
(In reply to Michael Catanzaro from comment #5) > Reinout, do you still think this is a good idea? > > I'm not sure I agree, because normally no data is lost on back/forward, it > goes into page cache and is restored instantly, so the action is not > normally destructive. But I guess that won't work on some pages, and maybe > it's useful to have the warning anyway. When this bug was filed, I think the behavior was that form contents would be lost without warning. Now that it is restored from the cache I don't think this is as much of a problem as it used to be.