summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2013-03-04 19:34:06 -0800
committerKris Maglione <maglione.k@gmail.com>2013-03-04 19:34:06 -0800
commit24e4ae8e3d4884fd34122a585e15b315d268fa97 (patch)
treecb4fbd732a4161b9f725103c694da72c06f6803a
parentf5049bbb5e20e3a856d6fe05783cec684b2a20f1 (diff)
downloadpentadactyl-24e4ae8e3d4884fd34122a585e15b315d268fa97.tar.gz
Update for per-window PBM changes. Closes issue #987.
-rw-r--r--common/modules/buffer.jsm17
1 files changed, 13 insertions, 4 deletions
diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm
index 0b6c5e03..b50d5477 100644
--- a/common/modules/buffer.jsm
+++ b/common/modules/buffer.jsm
@@ -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();