Closed
Bug 73219
Opened 24 years ago
Closed 24 years ago
A download function within URL won't commit... downloading a csv file...
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
mozilla0.9.3
People
(Reporter: f1j, Assigned: pollmann)
References
()
Details
(Whiteboard: [dupe of bug 68321?])
Attachments
(1 file)
(deleted),
text/plain
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3-pre6 i686; en-US; 0.8.1) Gecko/20010322
BuildID: 2001032223
Here is a copy of the java-script from that page dealing with the download:
// CFI Change Risk [DANGER]:
// Modifying the JavaScript code in this SERVER tag
// may cause errors.
------------------------------------------------------------------------->
<input TYPE="HIDDEN" VALUE=493619461 NAME="sid"><input TYPE="HIDDEN" VALUE=18.00
NAME="transaction"><input TYPE="HIDDEN" VALUE=undefined NAME="ACCOUNT"><input
TYPE="HIDDEN" VALUE=undefined NAME="HFR"><input TYPE="HIDDEN" VALUE=undefined
NAME="HTO"><input TYPE="HIDDEN" VALUE=undefined NAME="HTYPE"><input
TYPE="HIDDEN" VALUE=undefined NAME="HSF">To download the file click on: <input
TYPE="SUBMIT" VALUE="Download" onClick="postdata()">
<!------------------------------END CHANGE RISK--------------------------->
<br>
<br><input type="button" value="Return to History"
onClick="top.anotherOne('act_02.html')">
</td><td WIDTH=20></td></tr></table>
</form>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1.Log into site
2.Navigate to history of checking account
3.click on "DOWNLOAD"
4.No response
Actual Results: Within seconds... site times out... and message is displayed to
re login
Expected Results: Initiated a download of the waiting csv file
Mozilla doesn't crash... probably some incompatibility of the the script from
the credit union with mozilla.
Comment 1•24 years ago
|
||
That page requires a login to access... could you possibly attach the source of
the page as well as any external javascript files it loads to this bug? (I know,
that's a pain....)
Comment 3•24 years ago
|
||
Assigning to javascript.
Assignee: ddrinan → rogerl
Status: UNCONFIRMED → NEW
Component: Security: Crypto → Javascript Engine
Ever confirmed: true
QA Contact: junruh → pschwartau
Comment 4•24 years ago
|
||
From the duplicate bug 73713 -
JavaScript error:
https://webaccess.americafirst.com/WebAccess/log_01.html line 47:
can't convert timeoutID to an integer
JavaScript error:
uncaught exception: Exception... "Parameter is not a number"
code: 1005
nsresult: NS_ERROR_DOM_NOT_NUMBER_ERR
location: https://webaccess.americafirst.com/WebAccess/log_01.html Line: 47
JavaScript error:
uncaught exception: Exception... "Invalid pointer"
code: -2147467261
nsresult: NS_ERROR_INVALID_POINTER
location: https://webaccess.americafirst.com/WebAccess/log_01.html Line: 94
JavaScript error:
uncaught exception: Exception... "Invalid pointer"
code: -2147467261
nsresult: NS_ERROR_INVALID_POINTER
loc: https://webaccess.americafirst.com/WebAccess/act/act_02.html Line: 184
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
Some JavaScript from log_01.html follows below. "login" is the name of an
element in the HTML: <FORM name="login" action="log_011.html" method="POST">
var timeout = 180; // 3 minutes.
var timeoutID;
// Reset 'submit' so that the form can be submitted again.
function resetTimer()
{
window.clearTimeout(timeoutID);
window.status = "Enter Account # and PIN";
submit = false;
document.login.uid.focus();
}
function isANumber(inputValue)
{
if (!parseFloat(inputValue))
{
alert("Please enter only numbers, etc.")
document.login.reset()
document.login.uid.focus()
}
else
{
for (var i=0; i<inputValue.length; i++)
{
if (inputValue.charAt(i) != " ")
{
if (inputValue.charAt(i) != "0")
{
if(!parseFloat(inputValue.charAt(i)))
{
alert("Please enter only numbers, etc.")
document.login.reset ()
document.login.uid.focus()
break
}
}
}
}
}
}
// Check input fields and submit form.
function checkLogin()
{
form = document.login;
// Make sure the userid field is not blank
if(form.uid.value.length == 0)
{
alert("The account number field should not be blank.");
form.uid.focus();
return;
}
// This is to make sure that the form is submitted only once when
// the user hits several times on the login button.
if (submit) return;
timeoutID = window.setTimeout("resetTimer()", timeout*1000);
submit = true;
form.submit()
}
// Clear the login form on load. This way cached login data
// will not be shown to the next user.
function refreshForm ()
{
if (navigator.appName == "Netscape")
{
document.login.reset ()
}
}
//v2.0
function MM_openBrWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}
Updated•24 years ago
|
Assignee: rogerl → rods
Component: Javascript Engine → Form Submission
QA Contact: pschwartau → vladimire
Whiteboard: [dupe of bug 60673 or bug 68321?]
Comment 7•24 years ago
|
||
The first two JS errors above: "can't convert timeoutID to an integer"
and NS_ERROR_DOM_NOT_NUMBER_ERR are caused by this:
var timeoutID;
// Reset 'submit' so that the form can be submitted again.
function resetTimer()
{
window.clearTimeout(timeoutID);
etc.
The problem is, window.clearTimeout(timeoutID) is being called when
the variable timeoutID is uninitialized. This used to be OK in NN4.7,
but is not OK in the Mozilla DOM. See bug 56799, bug 59605.
The NS_ERROR_INVALID_POINTER error in log_01.html is occurring
at the line form.submit() in the function checkLogin(). This looks
like it may be a duplicate of bug 60673 or bug 68321. Reassigning
to Form Submission for further triage. At any rate, no JS Engine bug
is apparent here.
Comment 8•24 years ago
|
||
Oops, I guess bug 60673 was an incorrect suggestion, since that only has to
do with file: URLS. So reducing dupe list to bug 68321 (also see bug 68342).
Whiteboard: [dupe of bug 60673 or bug 68321?] → [dupe of bug 68321?]
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.3
Comment 10•24 years ago
|
||
Looking at the generated error messages in 2001050212-Trunk, this is definately
looking to be a dupe of bug 68321 - the behaviour seems identical.
Comment 11•24 years ago
|
||
*** This bug has been marked as a duplicate of 68321 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•