<div dir="ltr">Hi tor devs!<div><br></div><div>I've spent today getting ramped up on building/debugging tor-browser and investigating a solution to issue <a href="https://trac.torproject.org/projects/tor/ticket/13398" target="_blank">#13398</a> (NsUserInfo object scrapes user's name, username, email, and domain).</div><div><br></div><div>My first instinct was to just completely remove the offending code and interface.  It looks like some things have changed in this area since the issue was filed, as this information is no longer cached on firefox startup, but is still accessible via Add-Ons through the userinfo object ( <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIUserInfo" target="_blank">https://developer.mozilla.org/<wbr>en-US/docs/Mozilla/Tech/XPCOM/<wbr>Reference/Interface/<wbr>nsIUserInfo</a> ).</div><div><br></div><div>So my question to you is in this case, do we prefer to completely excise the nsIUserInfo interface from the codebase (and break any user Add-Ons which use it) or do we prefer to replace all the per-system implementations with a single 'mock' implementation which returns empty string (or errors) for each property getter?</div><div><br></div><div>Having read the design-doc (particularly the parts on finger printing) it seems like ripping out the class entirely is a bad idea as it would immediately identify the browser as a modern Tor Browser (given how old the API is and that vanilla Firefox still has it) and potentially break Add-Ons using it.  However, simply returning empty-string for these properties would also identify the browser as Tor Browser.  I know for certain that on windows the username (at least) will always return *something* so getting empty string here would also point to Tor Browser.</div><div><br></div><div>All that said, I suspect either of the above solutions are preferable to leaking user identifying information.</div><div><br></div><div>What do you think?</div><div><br></div><div>best,</div><div>-Richard</div></div>