Open main menu

CDOT Wiki β

Changes

Clear Private Data

697 bytes added, 11:53, 29 September 2006
no edit summary
106 sanitizeButton=Clear Private Data Now
Found "/browser/base/content/sanitize.xul, line 75 -- document.documentElement.getButton("accept").label = bundleBrowser.getString("sanitizeButton");". [http://lxr.mozilla.org/mozilla1.8.0/source/browser/base/content/sanitize.xul#75sanitize.xul] seems to link the button to some javascript source. We will search sanitize.js and see if that brings up anything interesting. In sanitize.js we found some javascript code that seems to link to c++ code. 151 cookies: { 152 clear: function () 153 { '''154 var cookieMgr = Components.classes["@mozilla.org/cookiemanager;1"]''' 155 .getService(Components.interfaces.nsICookieManager); '''156 cookieMgr.removeAll();''' 157 }, 158 159 get canClear() 160 { 161 var cookieMgr = Components.classes["@mozilla.org/cookiemanager;1"] 162 .getService(Components.interfaces.nsICookieManager); 163 return cookieMgr.enumerator.hasMoreElements(); 164 } 165 },
1
edit