[tor-bugs] #3229 [Tor Browser]: Make browser.zoom.siteSpecific memory-only + clearable (was: Make browser.zoom.siteSpecific memory-only)
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Tue Aug 23 22:33:52 UTC 2011
#3229: Make browser.zoom.siteSpecific memory-only + clearable
-------------------------+--------------------------------------------------
Reporter: mikeperry | Owner: mikeperry
Type: defect | Status: new
Priority: major | Milestone: TorBrowserBundle 2.2.x-stable
Component: Tor Browser | Version:
Keywords: | Parent: #2871
Points: 1 | Actualpoints:
-------------------------+--------------------------------------------------
Changes (by mikeperry):
* points: => 1
* milestone: => TorBrowserBundle 2.2.x-stable
Comment:
Looks like we can easily hack this similar to how we hacked the
permissions manager to be memory only. SiteZoom, along with an unknown
additional set of 'content' preferences, is stored in a database
connection via toolkit/components/contentprefs/nsContentPrefService.js.
The database connection is created in _dbInit().
https://developer.mozilla.org/en/XPCOM_Interface_Reference/mozIStorageService
We can also clear some (but perhaps not all?) items from the content-prefs
database via removeGroupedPrefs():
https://mxr.mozilla.org/mozilla-
central/source/dom/interfaces/base/nsIContentPrefService.idl
That function should clear the site zoom at least.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3229#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list