Closed
Bug 298432
Opened 19 years ago
Closed 19 years ago
crash at startup due to nsIPrefBranchInternal
Categories
(Core :: Preferences: Backend, defect)
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
Comment 1•19 years ago
|
||
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
Reporter | ||
Comment 3•19 years ago
|
||
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
Keywords: crash
Comment 5•19 years ago
|
||
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
Reporter | ||
Comment 6•19 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
Comment 7•19 years ago
|
||
The point is, you're using createInstance. DON'T DO THAT.
Reporter | ||
Comment 8•19 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.
Description
•