Is there a recommended way to do a global zoom (rather then the default site specific zoom)? I offer global zoom in an addon of mine but I dont like the way I did it - I held a global value and on focus of any tab I set the zoom level.
I was thinking:
-
User enables global zoom
-
My addon finds all the site specific settings and saves this to file
-
My addon then ensure siteSpecific pref is enabled. Then it tricks firefox to thinking that all sites are the same domain
-
If user disables global zoom then:
-
I resorted the saved site specific prefs saved in step 2
My plan to trick it to thinking all sites are same site: I don’t know how, but my plan is to trick nsIContentPrefService2 into returning a value for a dummy site I set for the name browser.content.full-zoom
.