crash at startup due to nsIPrefBranchInternal

VERIFIED INVALID

Status

()

Core
Preferences: Backend
VERIFIED INVALID
13 years ago
13 years ago

People

(Reporter: Henrik Gemal, Unassigned)

Tracking

({crash})

Trunk
x86
Windows XP
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
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?

Comment 2

13 years ago
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

Comment 4

13 years ago
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
(Reporter)

Comment 6

13 years ago
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.
(Reporter)

Comment 8

13 years ago
(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.