Closed
Bug 795203
Opened 12 years ago
Closed 12 years ago
B2g: clear private data: cookies
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
People
(Reporter: jduell.mcbugs, Assigned: jduell.mcbugs)
References
Details
(Keywords: feature)
Attachments
(1 file, 1 obsolete file)
4.62 KB,
patch
|
mconnor
:
review+
jduell.mcbugs
:
feedback+
|
Details | Diff | Splinter Review |
This just switches the cookieSvc to use the "webapps-clear-data" instead of 'webapps-uninstall': the former provides support for both clear data and uninstall (i.e. provides 'browserOnly' flag). Relies on the NS_GetAppInfoFromClearDataNotification nsNetUtil.h function I'm adding in bug 786299. Pretty simple patch--not sure if it really needs a cookie peer, honestly. Just hooking things up to external plumbing...
Attachment #665760 -
Flags: review?(mconnor)
Attachment #665760 -
Flags: feedback?(mounir)
Comment 1•12 years ago
|
||
Comment on attachment 665760 [details] [diff] [review] v1 Review of attachment 665760 [details] [diff] [review]: ----------------------------------------------------------------- This is indeed pretty simple. But could you rename AppUninstallObserver to something like ClearAppDataObserver? ::: netwerk/cookie/nsCookieService.cpp @@ +557,3 @@ > > uint32_t appId; > + bool browserOnly = false; If you initialize browserOnly, you can do that for appId too ;) @@ +562,5 @@ > + NS_ENSURE_SUCCESS(rv, rv); > + > + nsCOMPtr<nsICookieManager2> cookieManager > + = do_GetService(NS_COOKIEMANAGER_CONTRACTID); > + if (cookieManager) { !cookieManager should not happen. You should at least assert if that happens to be the case.
Attachment #665760 -
Flags: feedback?(mounir) → feedback+
Updated•12 years ago
|
Comment 2•12 years ago
|
||
BTW, we need tests for that.
Assignee | ||
Comment 4•12 years ago
|
||
As mentioned before, mostly external plumbing, so not sure we need full review from cookie peer. Up to mconnor...
Attachment #665760 -
Attachment is obsolete: true
Attachment #665760 -
Flags: review?(mconnor)
Attachment #666122 -
Flags: review?(mconnor)
Attachment #666122 -
Flags: feedback+
Blocks: 796110
Comment 5•12 years ago
|
||
Comment on attachment 666122 [details] [diff] [review] v2: w/mounir's fixes lgtm, sorry for delay here.
Attachment #666122 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/29cb1f0d796c
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/29cb1f0d796c
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 8•12 years ago
|
||
Jason, this feature should have tests. Do you think you can find cycles to write them?
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•