1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 08:14:11 +01:00

Update for per-window PBM changes. Closes issue #987.

This commit is contained in:
Kris Maglione
2013-03-04 19:34:06 -08:00
parent f5049bbb5e
commit 24e4ae8e3d

View File

@@ -1151,10 +1151,19 @@ var Buffer = Module("Buffer", {
if (services.has("contentPrefs") && !storage.privateMode
&& prefs.get("browser.zoom.siteSpecific")) {
services.contentPrefs[value != 1 ? "setPref" : "removePref"]
(this.uri, "browser.content.full-zoom", value);
services.contentPrefs[value != 1 ? "setPref" : "removePref"]
(this.uri, "dactyl.content.full-zoom", fullZoom);
var privacy = sanitizer.getContext(this.win);
if (value == 1) {
services.contentPrefs.removePref(
this.uri, "browser.content.full-zoom", privacy);
services.contentPrefs.removePref(
this.uri, "dactyl.content.full-zoom", privacy);
}
else {
services.contentPrefs.setPref(
this.uri, "browser.content.full-zoom", value, privacy);
services.contentPrefsc.setPref(
this.uri, "dactyl.content.full-zoom", fullZoom, privacy);
}
}
statusline.updateZoomLevel();