Closed
Bug 78386
Opened 25 years ago
Closed 25 years ago
[xpcdom] JS Components give errors at registration
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: peterv, Assigned: jband_mozilla)
Details
When I am starting up a debug xpcdom branch build on Mac for the first time (so
it registers components), I get the following errors on the console:
JS Component Loader: ERROR
q:moz:jst:source:mozilla:dist:viewer_debug:Components:chatzilla-service.js:1
TypeError: redeclaration of var nsISupports
JS Component Loader: ERROR
q:moz:jst:source:mozilla:dist:viewer_debug:Components:nsSidebar.js:1
TypeError: redeclaration of var nsISupports
JS Component Loader: ERROR
q:moz:jst:source:mozilla:dist:viewer_debug:Components:vxVixenService.js:1
TypeError: redeclaration of var nsISupports
All of these components have one thing in common, they have a line that says:
"const nsISupports = Components.interfaces.nsISupports;". Removing this line
fixes the errors, and then the components register normally. Note that only
nsISupports gives this error, other interfaces are ok. Not sure what is going on
here, but I am not seeing this on a trunk build. Is anyone seeing this on other
platforms?
| Assignee | ||
Comment 1•25 years ago
|
||
Shoot. I know what this is. This is the 'tearoff-disambiguator-thingy' on the
wrapped global object.
I see it on Windows too (now that I look) I can fix this. Thanks.
Assignee: jst → jband
| Assignee | ||
Comment 2•25 years ago
|
||
fix checked in to xpcdom branch. Thanks.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 3•25 years ago
|
||
Peter, is this working properly for you now? If so, could you mark
this bug Verified? Thanks -
You need to log in
before you can comment on or make changes to this bug.
Description
•