diff --git a/b2g/config/aries/sources.xml b/b2g/config/aries/sources.xml index bc94958d768f..3b2187275192 100644 --- a/b2g/config/aries/sources.xml +++ b/b2g/config/aries/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/b2g/config/dolphin/sources.xml b/b2g/config/dolphin/sources.xml index dce16271042e..d48f94c62e1c 100644 --- a/b2g/config/dolphin/sources.xml +++ b/b2g/config/dolphin/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/b2g/config/emulator-ics/sources.xml b/b2g/config/emulator-ics/sources.xml index c7b669f4c491..1af74874b996 100644 --- a/b2g/config/emulator-ics/sources.xml +++ b/b2g/config/emulator-ics/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/emulator-jb/sources.xml b/b2g/config/emulator-jb/sources.xml index 570051f5ca88..3993242918be 100644 --- a/b2g/config/emulator-jb/sources.xml +++ b/b2g/config/emulator-jb/sources.xml @@ -17,10 +17,10 @@ - + - + diff --git a/b2g/config/emulator-kk/sources.xml b/b2g/config/emulator-kk/sources.xml index 7d6eb5d12e44..b875bab79e60 100644 --- a/b2g/config/emulator-kk/sources.xml +++ b/b2g/config/emulator-kk/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/b2g/config/emulator-l/sources.xml b/b2g/config/emulator-l/sources.xml index a3f56a7f25e1..aff841d147a7 100644 --- a/b2g/config/emulator-l/sources.xml +++ b/b2g/config/emulator-l/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/b2g/config/emulator/sources.xml b/b2g/config/emulator/sources.xml index c7b669f4c491..1af74874b996 100644 --- a/b2g/config/emulator/sources.xml +++ b/b2g/config/emulator/sources.xml @@ -19,7 +19,7 @@ - + diff --git a/b2g/config/flame-kk/sources.xml b/b2g/config/flame-kk/sources.xml index e6b3987b4b27..6969f7c43495 100644 --- a/b2g/config/flame-kk/sources.xml +++ b/b2g/config/flame-kk/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/b2g/config/gaia.json b/b2g/config/gaia.json index 8ccff79591aa..d7adb25ad8ff 100644 --- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,9 +1,9 @@ { "git": { - "git_revision": "b441bde54293bea5254dc340845effe951fa3906", + "git_revision": "a8a462ab783a5bbab508d3c29483cff260672e3c", "remote": "https://git.mozilla.org/releases/gaia.git", "branch": "" }, - "revision": "f1a55165dcd312394c553f763defd95b4b166b12", + "revision": "4470d59428b583f2a393ecec55c192a3b2e3a40e", "repo_path": "integration/gaia-central" } diff --git a/b2g/config/nexus-4/sources.xml b/b2g/config/nexus-4/sources.xml index 7a9a58754d2a..d069e130b424 100644 --- a/b2g/config/nexus-4/sources.xml +++ b/b2g/config/nexus-4/sources.xml @@ -17,10 +17,10 @@ - + - + diff --git a/b2g/config/nexus-5-l/sources.xml b/b2g/config/nexus-5-l/sources.xml index 6a7ae2b3a2dc..490649bb0c9f 100644 --- a/b2g/config/nexus-5-l/sources.xml +++ b/b2g/config/nexus-5-l/sources.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css index 18a2111ca1f9..2e9dce924e90 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.css @@ -19,6 +19,9 @@ body[tpEnabled] .showTpDisabled, body:not([tpEnabled]) .showTpEnabled { display: none !important; } +body[globalTpEnabled] .showGlobalTpDisabled { + display: none !important; +} @media screen and (min-width: 1200px) and (min-height: 700px) { body.private { diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js index 079216d02dc5..c728d13b9b23 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js @@ -14,18 +14,25 @@ const FAVICON_PRIVACY = "chrome://browser/skin/Privacy-16.png"; let stringBundle = Services.strings.createBundle( "chrome://browser/locale/aboutPrivateBrowsing.properties"); -let prefBranch = Services.prefs.getBranch("privacy.trackingprotection.pbmode."); +let prefBranch = Services.prefs.getBranch("privacy.trackingprotection."); let prefObserver = { QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsISupportsWeakReference]), observe: function () { if (prefBranch.getBoolPref("enabled")) { + document.body.setAttribute("globalTpEnabled", "true"); + } else { + document.body.removeAttribute("globalTpEnabled"); + } + if (prefBranch.getBoolPref("pbmode.enabled") || + prefBranch.getBoolPref("enabled")) { document.body.setAttribute("tpEnabled", "true"); } else { document.body.removeAttribute("tpEnabled"); } }, }; +prefBranch.addObserver("pbmode.enabled", prefObserver, true); prefBranch.addObserver("enabled", prefObserver, true); function setFavIcon(url) { diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml index 0a108bedbc9a..c6590a1d4706 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml @@ -73,11 +73,11 @@