Closed Bug 306424 Opened 19 years ago Closed 19 years ago

crash if load nsIPasswordManager during app-startup observer

Categories

(Toolkit :: Password Manager, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 294075

People

(Reporter: em_te, Unassigned)

Details

(Keywords: crash)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 I wrote an XPCOM component that starts up by registering with the nsICategoryManager and observing the "app-startup" topic. If I try to get a nsIPasswordManager object during the startup phase, Firefox crashes. No "exception" info is printed to the dump screen. Other general XPCOM components (nsIPrefBranch) can be created with no problem. I sought help at Mozillazine (http://forums.mozillazine.org/viewtopic.php?t=311327). Quoting Asqueella's words: "It crashes here, because mSignonFile is null. I guess that's because the profile isn't yet loaded." ["here" hyperlinks to http://lxr.mozilla.org/seamonkey/source/toolkit/components/passwordmgr/base/nsPasswordManager.cpp#290] I don't know if this is a bug or just me doing things in the wrong order. But it was hinted that "[a] common principle is that JS code shouldn't be able to crash core code." (Mozillazine) Reproducible: Always Steps to Reproduce: See testcase
Attached file minimal testcase (WILL CRASH BROWSER) (deleted) —
If firefox's password manager crashes, then that is not likely to be due to XPCOM. changing product to firefox. >"[a] common principle is that JS code shouldn't be able to crash >core code." (Mozillazine) out of curiousity, what URL is that from?
Assignee: dougt → nobody
Component: XPCOM → Password Manager
Product: Core → Firefox
QA Contact: xpcom → password.manager
> out of curiousity, what URL is that from? nevermind, found it
Severity: minor → critical
Keywords: crash
The patch in bug 294075 would fix this crash. *** This bug has been marked as a duplicate of 294075 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: