Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 852295 - Allow Lightweight Themes in Permanent Private Browsing. …
Browse files Browse the repository at this point in the history
…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
Cykesiopka committed Mar 29, 2013
1 parent da813a7 commit bdb8ee5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions toolkit/content/LightweightThemeConsumer.jsm
Expand Up @@ -18,7 +18,8 @@ this.LightweightThemeConsumer =
this._win = aDocument.defaultView; this._win = aDocument.defaultView;
this._footerId = aDocument.documentElement.getAttribute("lightweightthemesfooter"); this._footerId = aDocument.documentElement.getAttribute("lightweightthemesfooter");


if (PrivateBrowsingUtils.isWindowPrivate(this._win)) { if (PrivateBrowsingUtils.isWindowPrivate(this._win) &&
!PrivateBrowsingUtils.permanentPrivateBrowsing) {
return; return;
} }


Expand Down Expand Up @@ -59,7 +60,8 @@ LightweightThemeConsumer.prototype = {
}, },


destroy: function () { destroy: function () {
if (!PrivateBrowsingUtils.isWindowPrivate(this._win)) { if (!PrivateBrowsingUtils.isWindowPrivate(this._win) ||
PrivateBrowsingUtils.permanentPrivateBrowsing) {
Components.classes["@mozilla.org/observer-service;1"] Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService) .getService(Components.interfaces.nsIObserverService)
.removeObserver(this, "lightweight-theme-styling-update"); .removeObserver(this, "lightweight-theme-styling-update");
Expand Down

0 comments on commit bdb8ee5

Please sign in to comment.