Closed Bug 261863 Opened 20 years ago Closed 20 years ago

unable to POST (submit) form when only form submit object is a <input type="image">

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stj3571-mozilla, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2

I cannot login to several major sites, including FreshDirect and Amazon with my
build of Firefox.  I've tried using the scriptlet
"javascript:document.forms[0].submit();" [assuming 0 is the correct index];
however that returns the following error in the JS console:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLFormElement.submit]"  nsresult:
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
javascript:document.forms[0].submit(); :: <TOP_LEVEL> :: line 1"  data: no]

I can reproduce this behavior at the following two URIs:
https://www.amazon.com/gp/css/history/view.html/002-6390165-2399245?orderFilter=days-30&link=track
https://www.freshdirect.com/login/login_main.jsp




Reproducible: Always
Steps to Reproduce:
1.  Navigate to a web page containing a form with three form input elements: a
text type for the username, a password type for the password, and an image type
for the submit button.
2.  Enter the username and password fields with valid data.
3.  Click the submit image button.

Actual Results:  
Nothing happens.

Expected Results:  
The form should be POST'd to the specified form action URI.

Perhaps the fact that SSL is used is interesting here? 

I also only allow session cookies, and block all pop-ups.
Please dont file bugs with build older than 2 weeks, bugzilla cleary states
this. 0.9.2 is out-dated.

Going to marks this one as WORKSFORME, please reopen only if you can reproduce
this with at least Firefox 1.0 Preview Release or nightly branch build AND a
fresh profile.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Also, be sure y ou uninstall 0.9 before installing new version. 
You are correct, upgrading fixes this.

This bug is fixed with user agent string:
Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
BTW -- thanks for making the best browser on the market!  Everyday I see more
and more people appreciating your hard work!
You need to log in before you can comment on or make changes to this bug.