Bug in Firefox 3.0.5 Auto-Complete

"Cannot modify properties of a WrappedNative" exceptions appeared in the error console of Firefox 3.0.5 for Windows XP while working on a form input box inside a jQuery modal window.

It is generated when you cause the auto-complete pop-up to appear with a list of possible keywords that matched the first few characters typed into an input box, hover your mouse over the choices, and click somewhere on the page to close the pop-up.

Open the "error console" from the tools menu and there you will see the error like below:

Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 834" data: no]

Line number may differ in various builds and platforms but points to same code in "popuphiding" function as in below:

831     // If the list was being navigated and then closed, make sure
832     // we fire accessible focus event back to textbox
833     if (isListActive) {
834       this.mInput.mIgnoreFocus = true;
835       this.mInput._focus();
836       this.mInput.mIgnoreFocus = false;
837     }

The reason: the function always assumes that "mInput" property is an input box. But when form auto-complete is active, the input box is wrapped or proxied by a form fill controller so it's no longer the input box the code is interacting with.

Fortunately, the error does not cause any harm or interfere with scripts on a web page so it is safe to ignore it.

In case you find it annoying or alarming especially while debugging scripts on a web page, you can turn off form auto-complete by unchecking "Remember what I enter in forms and the search bar" check box in Tools --> options --> privacy tab.

Alternatively, when you need auto-complete functionality, comment out line 834 with double slashes.

To do that, you need a software that can open and update jar files.

Locate your Mozilla Firefox chrome folder, open toolkit.jar, then open and update "content/global/bindings/autocomplete.xml" file.

This error was reported in bugzilla.mozilla.org as Bug 428602.

Comments
2010-02-03 16:11:31
Thanks for information!
 - Minnesota twins jerseys
2010-05-28 12:33:26
Effiicient service - authentic mauer jersey arrived within specified delivery time. Unfortunately cheap minnesota twins jerseys were damaged in transit, but Customer Service was very helpful and a replacement arrived within a week.Shipping took a bit of time but well worth the wait. Very happy to have some fine cheap pittsburgh penguins jersey that aren't identical to the Brooks Brothers clothing that everyone wears around here!great quality jerseys I will order again. delivery really quick. can charles tyrwhitt confirm that their staff and the delivery firm that they use in north shields have special powers as the nhl pittsburgh penguins jerseys arrived so quick.So I love your company. You do everything you say.They also offered pittsburgh penguins jerseys for sale and hot sale 09-10 Olympique Lyon 3Rd and football jerseys cheap barcelona jerseys they are always with the largest merchandise time. They should be proud of themself !
2010-06-03 11:56:42
Thanks for info!
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."