Closed Bug 869565 Opened 12 years ago Closed 12 years ago

Error in browser console code when dealing with XPConnect exception

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 23

People

(Reporter: bzbarsky, Assigned: msucan)

References

Details

Attachments

(1 file)

The exception text looks like this: [13:58:59.291] [Exception... "'Error: haha' when calling method: [nsIFactory::createInstance]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: no] Not sure what the object looks like.... When I click it in the browser console, I get: [13:59:02.646] ReferenceError: reference to undefined property selectedItem.url @ chrome://browser/content/devtools/webconsole.js:4425
Thanks for the report. To make sure I understand correctly, the bug is about the ReferenceError that shows when an XPConnect error is logged? I'll fix this ASAP.
> the bug is about the ReferenceError that shows when an XPConnect error is logged? That's correct; the exception thrown by webconsole.js itself.
Harmless error related to the undefined property. Will fix this.
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Attached patch patchSplinter Review
Made changes to avoid strict warnings and errors in the Browser and Web Consoles. Landed in fx-team: https://hg.mozilla.org/integration/fx-team/rev/8f4b12ba859e r=me
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: