Closed Bug 64612 Opened 25 years ago Closed 24 years ago

"Auto-Detect (All)" causes a duplicate HTTP GET (or POST) to be sent

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: jrgmorrison, Assigned: shanjian)

Details

(Keywords: dataloss, perf)

Overview Description: If you set the menu option for 'View->Character Coding->Auto-Detect->Auto-Detect (All)' then the first visit to _any_ URL will result in two HTTP GETs being sent out (or HTTP POST as the case may be). That means: (1) page loading time is increased by the duplicate GET, and (2) the browser will spontaneously attempt to submit a form twice [This may be related to bug 22203, in certain respects, although it may be something distinct.] Steps to Reproduce: 1) use a web server where you have access to the access logs2) 2) Set menu to 'View->Character Coding->Auto-Detect->Auto-Detect (All)' 3) click on links located at that web server (ones that are not previously visited). 4) bonus points: go add comments to bug 64611 (a test bug report) Actual Results: When you review the logs for the GET case, you will see a duplicate GET For the HTTP POST, the comment will be submit, and then will attempt to submit itself again (although it appears bugzilla traps this and prints an error message). Expected Results: The second GET (or PUT) should never occur if the transfer is '200 OK'. It may be the case that the page needs to be reflowed, including possibly re-initializing everything (I don't know), but since we have the valid document in our hands, there must be a way to avoid getting it again. Reproducibility: 100% on the first visit to a URL Build Date & Platform Bug Found: win2k 20010102, mac 20010104, linux 20010102 commercial builds (I believe this universal detection code is not in mozilla. Right?). In the console on win32, there are pairs of messages like the following (in builds for Jan 02 ... this message was eliminated in non-debug builds recently so you won't see it in current builds). Error loading URL http://foo.mcom.com/some/path/index.html: 804b0002 Document http://foo.mcom.com/some/path/index.html loaded successfully So, the first GET is reported as an "error", and the second GET "succeeds". (However, from the HTTP logs, both transfers are '200 OK'). Nom. nsbeta1 -- there are both performance costs and data-loss risks for this bug. (cc: endico for bugzilla, rods for HTML Form Submission, as I think there have been mysterious "duplicate submissions of form" bugs).
Keywords: dataloss, nsbeta1, perf
Reasssign to shanjian, cc to ftang.
Assignee: nhotta → shanjian
Changed QA contact to andreasb@netscape.com for now.
QA Contact: teruko → andreasb
Please close this bug and file one for commercial build. But I guess it should be resolved after my new charset detector lands.
Closing in favour of http://bugscape.mcom.com/show_bug.cgi?id=4540, since the 'auto-detect all' is in Netscape commercial builds.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Marking as verified invalid, please reopen in case someone disagrees.
You need to log in before you can comment on or make changes to this bug.