Closed
Bug 384405
Opened 18 years ago
Closed 17 years ago
Illegal operation on WrappedNative prototype object thrown at submit()
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 252291
People
(Reporter: atec_post, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
The following javascript code throws the exception
var oldF = document.forms[0].submit;
document.forms[0].submit = function () {
oldF();
};
document.forms[0].submit(); // <-- The exception is thrown here
Reproducible: Always
Steps to Reproduce:
1. Test the javascript posted before
Actual Results:
The exception thrown is:
uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: file:///C:/Documents%20and%20Settings..... :: anonymous :: line 24" data: no]
Expected Results:
The have to be submitted
Some hints are found at:
http://forums.mozillazine.org/viewtopic.php?p=2926159
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=20&t=008415
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•