Open main menu

CDOT Wiki β

Changes

Clear Private Data

818 bytes added, 12:06, 29 September 2006
no edit summary
Found "/browser/locales/en-US/chrome/help/menu_reference.xhtml, line 351 -- <h3 id="clear_private_data">Clear Private Data...</h3>" which gives us some xml tag id which may help. Going to search that tag. We found anothe route.
Found "/browser/locales/en-US/chrome/browser/browser.properties, line 106 -- sanitizeButton=Clear Private Data Now". The sanitize button seemed interesting, so we searched that and got:
164 }
165 },
 
We'll search "nsICookieManager" and found a "/netwerk/cookie/public/nsICookieManager.idl".
 
In "nsICookieManager.idl" we found a link [http://lxr.mozilla.org/mozilla1.8.0/ident?i=nsICookieManager nsICookieManager] which links [http://lxr.mozilla.org/mozilla1.8.0/source/netwerk/cookie/src/nsCookieService.cpp#376 nsCookieServer.cpp].
 
449 if (!nsCRT::strcmp(aData, NS_LITERAL_STRING("shutdown-cleanse").get())) {
450 RemoveAllFromMemory();
'''451 // delete the cookie file'''
452 if (mCookieFile) {
'''453 mCookieFile->Remove(PR_FALSE);'''
454 }
455 } else {
456 Write();
'''457 RemoveAllFromMemory();'''
458 }
 
This file is the cpp cookie implementation and it seems the code above removes the cookie.
Good learning experience I think we'd all say!
1
edit