Closed Bug 480526 Opened 16 years ago Closed 16 years ago

Wrong access to Components.interfaces.nsIMIMEService

Categories

(Developer Documentation Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evgeny, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6 Build Identifier: On the above page, in one example one sees var mimeService = Components.classes["@mozilla.org/mime;1"] .createInstance(Components.interfaces.nsIMIMEService); instead of .getService. Interestingly, using the .createInstance() interface works too - till the garbage collector puts his hands on the mimeService var... Then FF randomly crashes ;-( Reproducible: Always The MDC entry for nsIMIMEService is missing....
it's a wiki, supposedly you can change them w/o filing bugs :).
The "Edit page" button is disabled....
You need to create an account first (the "Register" link). All you need is an e-mail address.
Done. Yet: shouldn't an attempt to createInstance() where getService() is supposed to be called generate an error?
That's a valid question that I don't remember seeing a good answer to, but it shouldn't be asked in a bug. Marking this bug FIXED (thanks for fixing up the docs!), please ask the question in http://groups.google.com/group/mozilla.dev.platform/topics?pli=1
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: Documentation Requests → Documentation
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.