Closed Bug 301063 Opened 19 years ago Closed 19 years ago

The contains POSTDATA dialog which appears when attempting to refresh a page should have yes, no, and cancel buttons

Categories

(Firefox :: General, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 112848

People

(Reporter: marmot4, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

The contains POSTDATA dialog which appears when attempting to refresh a page
should have yes, no, and cancel functionality.  Yes would behave like the
current Okay button (reposting the data), No would simply refresh the page
without post data, and Cancel would act like the current cancel button.

Reproducible: Always
UI design of this dialog is discussed in bug 112848 (your suggestion is comment
#11 in that bug).

*** This bug has been marked as a duplicate of 112848 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
My suggestion is not in fact the same as in comment #11 from bug 112848.  That 
comment says the previous page should be cached and the cache should be 
displayed.

My suggestion is simply to resubmit the same URL without the post data.  If 
the post data was an essential part of the page you were visiting then the 
page will display its own error to that effect.  If, however, the post data 
was not an essential part of the page then you will be "redirected" as it were 
to a base page.  There are many times when this is what I want the browser to 
do.  Refresh by hitting the URL, not by sending any form data again.  
Currently to accomplish this you have to select cancel from the REPOST dialog 
and then select the URL in the url bar and hit enter.  This is how I image 
most end users think of the refresh button.
I'd say that this is not really practical. You just cannot blindly assume that
a form post without any data will do anything useful, and it might even do things
like submitting empty comment posts on discussion boards or worse. Resubmitting a
form is generally not a safe choice (with or without data). It may well work for
you in some cases, but not in general.
You need to log in before you can comment on or make changes to this bug.