I had the following in an extension: var pbi = Components.classes["@mozilla.org/preferences-service;1"].createInstance(Components.interfaces.nsIPrefBranchInternal); and my firefox crash'es at startup Talkback: TB6881626K TB6881619Y
Shouldn't you be using getService for the prefs service?
precisely. although the prefservice really shouldn't suck this way either.
Assignee: nobody → prefs
Component: Preferences → Preferences: Backend
Product: Firefox → Core
QA Contact: preferences
Version: unspecified → Trunk
from http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB6881626K it says it crashes in http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/modules/libpref/src/prefapi.cpp&mark=862&rev=#862
that sounds familiar, we've had crashes in that mess before.
I'm going to mark this invalid, sorry. It's a service. Don't createInstance it.
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
when I add this line to a extension of mine var pbi = Components.classes["@mozilla.org/preferences-service;1"].createInstance(Components.interfaces.nsIPrefBranchInternal); my browser become non functional and I got some weird alerts with: "You cannot connect to bugzilla.mozilla.org because SSL is disabled." weird
The point is, you're using createInstance. DON'T DO THAT.
(In reply to comment #7) > The point is, you're using createInstance. DON'T DO THAT. > yes yes. I know that...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.