Closed Bug 264060 Opened 20 years ago Closed 20 years ago

"Permission denied to get property XULElement.selectedIndex" in Javascript console if blur event occurs immediately after focus event

Categories

(Firefox :: Address Bar, defect)

x86
Linux
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 236791

People

(Reporter: asvravi, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1


When Javascript code is such that a blur event is called on a form field
immediately after it gains focus, the javascript console spews out an error
message about some autocomplete stuff.



Reproducible: Always
Steps to Reproduce:
1. Have a form in the page with the following field in it -
<INPUT id=foo name=bar type=text size=2 value='' OnFocus="blur()"> 
2. After the page loads, click inside this field
3. Watch the Javascript console

Actual Results:  
The following error message is displayed in javascript console -

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 :: <unknown filename> ::
onfocus :: line 0"  data: no]

The field blurring works as expected though.


Expected Results:  
The error reported in the javascript console is not expected.

*** This bug has been marked as a duplicate of 236791 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Summary: Javascript console spews autocomplete error message if blur event occurs immediately after focus event → "Permission denied to get property XULElement.selectedIndex" in Javascript console if blur event occurs immediately after focus event
v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.