Closed
Bug 615745
Opened 14 years ago
Closed 14 years ago
CookieServiceChild doesn't receive preference observer notifications
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fennec | 2.0b4+ | --- |
People
(Reporter: jdm, Assigned: jdm)
References
Details
Attachments
(1 file, 2 obsolete files)
1.95 KB,
patch
|
dwitte
:
review+
|
Details | Diff | Splinter Review |
From CookieServiceChild::CookieServiceChild:
> prefBranch->AddObserver(kPrefCookieBehavior, this, PR_TRUE);
> prefBranch->AddObserver(kPrefThirdPartySession, this, PR_TRUE);
PR_TRUE in this case means that we want a weak observer, but CookieServiceChild doesn't support weak references.
Assignee | ||
Updated•14 years ago
|
tracking-fennec: --- → ?
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #494232 -
Flags: review?(dwitte)
Comment 2•14 years ago
|
||
(In reply to comment #0)
> PR_TRUE in this case means that we want a weak observer, but CookieServiceChild
> doesn't support weak references.
Eh, why doesn't it support weak references?
Comment 3•14 years ago
|
||
Comment on attachment 494232 [details] [diff] [review]
Make CookieServiceChild add strong pref observers.
This would leak. If we register them, we need to unregister them at the right times (which is why we use weak references in the first place; we don't need to worry about it)
Attachment #494232 -
Flags: review?(dwitte) → review-
Assignee | ||
Updated•14 years ago
|
Attachment #494232 -
Attachment is obsolete: true
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #494279 -
Flags: review?(dwitte)
Assignee | ||
Comment 5•14 years ago
|
||
Comment on attachment 494279 [details] [diff] [review]
Make CookieServiceChild add strong pref observers.
I am dumb; nevermind.
Attachment #494279 -
Flags: review?(dwitte)
Assignee | ||
Updated•14 years ago
|
Attachment #494279 -
Attachment is obsolete: true
Assignee | ||
Comment 6•14 years ago
|
||
Attachment #494281 -
Flags: review?(dwitte)
Assignee | ||
Updated•14 years ago
|
Attachment #494281 -
Attachment description: Make CookieServiceChild add strong pref observers. → Make CookieServiceChild support weak references.
Updated•14 years ago
|
tracking-fennec: ? → 2.0b4+
Updated•14 years ago
|
Assignee: nobody → josh
Comment 7•14 years ago
|
||
Comment on attachment 494281 [details] [diff] [review]
Make CookieServiceChild support weak references.
r=dwitte
Attachment #494281 -
Flags: review?(dwitte) → review+
Comment 8•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•