Bug 1546747 - Remove references to non existing element alwaysAcceptSession in cookie preferences. r=IanN a=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 12 May 2019 14:31:11 +0200
changeset 28309 3636dfc6f54f123fa9437c38c94d1e0fcc5abd71
parent 28306 659c9551e19da6a7a719e656ea8d899f53152ea7
child 28310 341e6b4a9882faea9905dd4a85024f0c21589999
push id2133
push userfrgrahl@gmx.net
push dateSun, 12 May 2019 12:33:15 +0000
treeherdercomm-esr52@341e6b4a9882 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1546747
Bug 1546747 - Remove references to non existing element alwaysAcceptSession in cookie preferences. r=IanN a=IanN
suite/common/pref/pref-cookies.js
--- a/suite/common/pref/pref-cookies.js
+++ b/suite/common/pref/pref-cookies.js
@@ -4,35 +4,31 @@
 
 function Startup()
 {
   SetDisables(false);
 }
 
 function SetDisables(aSetFocus)
 {
+  // Policy 1 was "ask before accepting" and is no longer valid.
+
   // const for Cookie Accept Policy
   const kCookiesDisabled = 2;
   // const for Cookie Lifetime Policy
-  const kAskBeforeAccepting = 1;
   const kAcceptForNDays = 3;
 
   var behavior = document.getElementById("networkCookieBehavior");
   var behaviorPref = document.getElementById(behavior.getAttribute("preference"));
 
   var lifetime = document.getElementById("networkCookieLifetime");
   var lifetimePref = document.getElementById(lifetime.getAttribute("preference"));
   var days = document.getElementById("lifetimeDays");
   var daysPref = document.getElementById(days.getAttribute("preference"));
 
-  var session = document.getElementById("alwaysAcceptSession");
-  var sessionPref = document.getElementById(session.getAttribute("preference"));
-
   var cookiesDisabled = (behaviorPref.value == kCookiesDisabled);
   lifetime.disabled = cookiesDisabled || lifetimePref.locked;
   days.disabled = cookiesDisabled || daysPref.locked ||
                   (lifetimePref.value != kAcceptForNDays);
-  session.disabled = cookiesDisabled || sessionPref.locked ||
-                     (lifetimePref.value != kAskBeforeAccepting);
 
   if (!days.disabled && aSetFocus)
     days.focus();
 }