Last Comment Bug 679877 - cannot get classDescription of Components.ID, Components.Exception and Components.Constructor
: cannot get classDescription of Components.ID, Components.Exception and Compon...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: XPConnect (show other bugs)
: unspecified
: x86_64 Linux
: -- normal (vote)
: mozilla9
Assigned To: Blake Kaplan (:mrbkap)
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-17 14:19 PDT by arno renevier
Modified: 2011-08-31 02:12 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Proposed fix (3.52 KB, patch)
2011-08-17 15:05 PDT, Blake Kaplan (:mrbkap)
jst: review+
Details | Diff | Splinter Review

Description arno renevier 2011-08-17 14:19:13 PDT
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"
Comment 1 Blake Kaplan (:mrbkap) 2011-08-17 15:05:35 PDT
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.
Comment 2 Marco Bonardo [::mak] 2011-08-31 02:12:21 PDT
http://hg.mozilla.org/mozilla-central/rev/854fad6cbc31

Note You need to log in before you can comment on or make changes to this bug.