Open
Bug 300848
Opened 19 years ago
Updated 2 years ago
"Try Again" on XUL error page warns about resending postdata even if previous connection attempt did not succeed
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: helpwanted)
Attachments
(1 file)
9.24 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b3) Gecko/20050714 Firefox/1.0+ Steps to reproduce: 1. Disconnect from the Internet. (I did this by clicking the wireless icon at the top of the screen and selecting "Turn AirPort Off".) 2. Submit a Bugzilla form. This should result in an error page. (In my case, I got "Connection Failure Error: The connection was refused when attempting to contact bugzilla.mozilla.org.") 3. Click the "Try Again" button. Result: I get a warning about resending POSTDATA. Expected: Firefox should be smart enough to know that because the connection did not succeed the first time, sending the postdata now won't cause the server to get it twice. ccing some people from bug 237244.
Updated•19 years ago
|
Keywords: helpwanted
Updated•15 years ago
|
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Comment 1•13 years ago
|
||
Firefox sometimes gives me "TIME OUT" page even when the server has received POSTDATA. If I pull out my LAN cable during a HTTP POST connection, it's hard for Firefox (and anybody else) to tell whether or not POSTDATA will arrive.
Reporter | ||
Comment 2•13 years ago
|
||
Right, we'd have to limit this to cases where Firefox knows it did not send the POSTDATA on the first attempt.
Comment 3•13 years ago
|
||
(In reply to comment #2) > Right, we'd have to limit this to cases where Firefox knows it did not send the > POSTDATA on the first attempt. Then, I browsed docshell/necko a little. To work around bug 137155, necko sends both HTTP header and (first part of) POSTDATA in a single shot. As a result, necko consumes POSTDATA stream attached to nsIChannel, even when it's in vain. On the other hand, nsISocketTransport::STATUS_SENDING_TO seems reliable. Probably we can catch it at nsDocLoader::OnStatus(...) and its bubbles.
Comment 4•13 years ago
|
||
> As a result, necko consumes POSTDATA stream attached to nsIChannel, even when
> it's in vain.
Does it do that before connection setup has finished?
ccing some necko folks.
Comment 5•13 years ago
|
||
At first, I thought something like this: nsDocsehll::ConfirmRepost(...) should be called, only when offset of POSTDATA input stream is not 0. For necko uses the data on successful connection. But after I modified nsDocshell.cpp as the patch shows, I noticed that the offset of reloading POSTDATA is always non-zero. At least on NS_ERROR_UNKNOWN_HOST (= "Server Not Found") and NS_ERROR_CONNECTION_REFUSED (= "Unable to connect"), as results of disabled LAN connection. (In reply to comment #4) > Does it do that before connection setup has finished? Maybe after setup of connection without any valid handshake at NSPR level. This bug just wants to know whether we can actually see off the departure of POSTDATA or not.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•