Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 852295 - Allow Lightweight Themes in Permanent Private Browsing. …

…r=dao a=akeybl

--HG--
extra : transplant_source : d_2%D5%E2f%C5%7D8Y%EF%EE%1D%E8%B7%00B%7E%20n
  • Loading branch information...
commit bdb8ee5263e12778397e3b14398b58845e037e9d 1 parent da813a7
Cykesiopka authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 toolkit/content/LightweightThemeConsumer.jsm
View
6 toolkit/content/LightweightThemeConsumer.jsm
@@ -18,7 +18,8 @@ this.LightweightThemeConsumer =
this._win = aDocument.defaultView;
this._footerId = aDocument.documentElement.getAttribute("lightweightthemesfooter");
- if (PrivateBrowsingUtils.isWindowPrivate(this._win)) {
+ if (PrivateBrowsingUtils.isWindowPrivate(this._win) &&
+ !PrivateBrowsingUtils.permanentPrivateBrowsing) {
return;
}
@@ -59,7 +60,8 @@ LightweightThemeConsumer.prototype = {
},
destroy: function () {
- if (!PrivateBrowsingUtils.isWindowPrivate(this._win)) {
+ if (!PrivateBrowsingUtils.isWindowPrivate(this._win) ||
+ PrivateBrowsingUtils.permanentPrivateBrowsing) {
Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService)
.removeObserver(this, "lightweight-theme-styling-update");
Please sign in to comment.
Something went wrong with that request. Please try again.