Closed
Bug 237396
Opened 20 years ago
Closed 20 years ago
The javascript works, but "Permission denied to get property XULElement.selectedIndex" appears in js console
Categories
(Firefox :: Address Bar, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 236791
People
(Reporter: icnec, Assigned: bugzilla)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 I have only seen this on the Firefox build, and not Mozilla 1.6. I'll set up the senario...I have a form with an onsubmit='return(CanSubmit())'; That way I can cancel the submission of the form if my data validation fails. Well it turns out that if you have an alert or a confirm in the onsubmit function and it fires, and then the onsubmit function returns false, it produces the following javascript error in the console window: Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: https://localhost/employer/shift.php? func=edit&id=16&startI=1079155800&endI=1079188200 :: CanSubmit :: line 428" data: no] Source File: https://localhost/employer/shift.php? func=edit&id=16&startI=1079155800&endI=1079188200 Line: 428 Reproducible: Always Steps to Reproduce: 1.described above 2. 3. Actual Results: I get the error in the console window when I discover I have invalid data , pop up the alert, and cancel the submission. Expected Results: Not given me the error. It doesn't in Mozilla 1.6
Comment 1•20 years ago
|
||
> I have only seen this on the Firefox build, and not Mozilla 1.6
And that's why you filed it on Mozilla? ;)
Assignee: general → firefox
Component: JavaScript Engine → General
Product: Browser → Firefox
Version: Trunk → unspecified
Comment 2•20 years ago
|
||
-> autocomplete
Component: General → Autocomplete
Summary: The javascript appears to work, however, if the javascript console is viewed I get a narly looking error message. → The javascript works, but "Permission denied to get property XULElement.selectedIndex" appears in js console
Comment 3•20 years ago
|
||
Related: bug 236791
Comment 4•20 years ago
|
||
Bug 236791 is quite similar to this and has quite a bit of info. *** This bug has been marked as a duplicate of 236791 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•