Skip to content

Commit

Permalink
nsIPrivateBrowsingService exists yet but has no properties on Fx20
Browse files Browse the repository at this point in the history
Fixies issue 848
add checkeing either exists "privateBrowsingEnabled" property or not.
teramako committed Apr 25, 2013
1 parent ebfe7b3 commit ad54469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/content/browser.js
Original file line number Diff line number Diff line change
@@ -54,7 +54,9 @@ const Browser = Module("browser", {

// only available in FF 3.5-19
// TODO: remove when FF ESR's version is over 20. privateBrowsing will be per-window from FF 20+
if (services.get("privateBrowsing")) {
// XXX: on Fx20, nsIPrivateBrowsingService exists yet but has no properties
let pb = services.get("privateBrowsing");
if (pb && "privateBrowsingEnabled" in pb) {
options.add(["private", "pornmode"],
"Set the 'private browsing' option",
"boolean", false,

0 comments on commit ad54469

Please sign in to comment.