The default bug view has changed. See this FAQ.

cannot get classDescription of Components.ID, Components.Exception and Components.Constructor

RESOLVED FIXED in mozilla9

Status

()

Core
XPConnect
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: arno renevier, Assigned: mrbkap)

Tracking

unspecified
mozilla9
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Components.ID.QueryInterface(Components.interfaces.nsIClassInfo).classDescription;
    Components.Exception.QueryInterface(Components.interfaces.nsIClassInfo).classDescription;
    Components.Constructor.QueryInterface(Components.interfaces.nsIClassInfo).classDescription;

throw exceptions: "Cannot modify properties of a WrappedNative"
(Assignee)

Comment 1

6 years ago
Created attachment 553921 [details] [diff] [review]
Proposed fix

Once we've mutated the set, new properties go on the object itself. This means that classes that have helpers and don't declare all of their interfaces in classinfo have to have the ALLOW_PROP_MODS_DURING_RESOLVE flag.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #553921 - Flags: review?(jst)

Updated

6 years ago
Attachment #553921 - Flags: review?(jst) → review+
http://hg.mozilla.org/mozilla-central/rev/854fad6cbc31
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.