Closed Bug 298432 Opened 19 years ago Closed 19 years ago

crash at startup due to nsIPrefBranchInternal

Categories

(Core :: Preferences: Backend, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: bugzilla, Unassigned)

Details

(Keywords: crash)

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
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
Closed: 19 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.