Closed
Bug 205997
Opened 22 years ago
Closed 9 years ago
nsPrefService::ReadAndOwnSharedUserPrefFile should use nsIFile.equals
Categories
(Core Graveyard :: Profile: BackEnd, defect, P5)
Core Graveyard
Profile: BackEnd
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: timeless, Assigned: ccarlen)
Details
Attachments
(1 file)
910 bytes,
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
nsresult nsPrefService::ReadAndOwnSharedUserPrefFile(nsIFile *aFile)
{
NS_ENSURE_ARG(aFile);
if (mCurrentSharedFile == aFile)
return NS_OK;
NS_IF_RELEASE(mCurrentSharedFile);
nsIFile is of course not an atom, but presumably this code is designed to avoid
reopening the same pref file. If that's the case then it should call Equals()
Attachment #134990 -
Flags: review?(bsmedberg)
Comment 2•21 years ago
|
||
Comment on attachment 134990 [details] [diff] [review]
like this
If you're gonna do it, do it all the way... see
http://lxr.mozilla.org/mozilla/source/modules/libpref/src/nsPrefService.cpp#508
and #543
And is there any reason we're not using a comptr here?
--BDS
Attachment #134990 -
Flags: review?(bsmedberg) → review-
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Updated•15 years ago
|
QA Contact: agracebush → profile-manager-backend
Blocks: 1243899
Comment 3•9 years ago
|
||
This bug is filed in a bugzilla component related to pre-Firefox code which no longer exists. I believe it is no longer relevant and I am therefore closing it INCOMPLETE.
If you believe that this bug is still valid and needs to be fixed, please reopen it and move it to the Toolkit:Startup and Profile System product/component.
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•