Closed Bug 428557 Opened 18 years ago Closed 18 years ago

Error in console: NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED

Categories

(Firefox :: File Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: marcia, Assigned: bent.mozilla)

References

Details

Attachments

(2 files)

Seen while testing Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008041104 Minefield/3.0pre. STR: Not sure, I got this message in the error console and it just sounded bad and I haven't seen it previously: Error: [Exception... "'JavaScript component does not have a method named: "onStateChange"' when calling method: [nsIDownloadProgressListener::onStateChange]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "JS frame :: file:///Users/marcia/Desktop/LatestTrunk/Minefield.app/Contents/MacOS/components/nsHelperAppDlg.js :: anonymous :: line 798" data: no] Source File: file:///Users/marcia/Desktop/LatestTrunk/Minefield.app/Contents/MacOS/components/nsHelperAppDlg.js Line: 798
That's an odd exception - the progressListener object we set as the progress listener on nsExternalHelperAppService certainly does have an onStateChange method.
Component: General → File Handling
QA Contact: general → file.handling
I've found the real problem: http://mxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#6693 But I haven't figured out why the error message is so misleading...
Attached patch Patch — — Splinter Review
Silly.
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Attachment #315186 - Flags: review?(gavin.sharp)
Attachment #315186 - Flags: review?(gavin.sharp) → review+
Comment on attachment 315186 [details] [diff] [review] Patch Very simple, zero-risk patch to keep the error console clean whenever downloading a file.
Attachment #315186 - Flags: approval1.9?
(In reply to comment #2) > But I haven't figured out why the error message is so misleading... I know why now, and sadly there's almost nothing we can do about it. See bug 428590.
Comment on attachment 315186 [details] [diff] [review] Patch a1.9=beltzner
Attachment #315186 - Flags: approval1.9? → approval1.9+
OS: Mac OS X → All
Hardware: PC → All
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Verified on: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9pre) Gecko/2008050704 Minefield/3.0pre
I'm seeing this error in the console still with the latest 3.0pre build. The error occurs when typing in an autocomplete textbox in my extension. Error: [Exception... "'JavaScript component does not have a method named: "getImageAt"' when calling method: [nsIAutoCompleteResult::getImageAt]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "<unknown>" data: no]
After installing start typing "12345" into textbox to see the error console flood with errors.
Appears that the error was due to an update of the nsSearchSuggestions.js script not a regression. Misleading error didn't help me figure that out.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: