Bug 1574255 - Removed gUsageRequest from pageinfo's permissions.js. r=johannh
authorMegha <meghajais.mj@hotmail.com>
Wed, 21 Aug 2019 09:51:23 +0000
changeset 489170 76cb5e6e7d00d362b37a9aafc824c4a5dcab4775
parent 489169 524d316dcbfc5bc2d95d1e0e66154ed40cdf5ecb
child 489171 ab0ab2628da12956261bcaa2cc4383dde6f26a89
push id36465
push userdvarga@mozilla.com
push dateWed, 21 Aug 2019 16:47:43 +0000
treeherdermozilla-central@4ab60925635c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1574255
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1574255 - Removed gUsageRequest from pageinfo's permissions.js. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D42687
browser/base/content/pageinfo/permissions.js
--- a/browser/base/content/pageinfo/permissions.js
+++ b/browser/base/content/pageinfo/permissions.js
@@ -4,17 +4,16 @@
 
 /* import-globals-from pageInfo.js */
 
 const { SitePermissions } = ChromeUtils.import(
   "resource:///modules/SitePermissions.jsm"
 );
 
 var gPermPrincipal;
-var gUsageRequest;
 
 // Array of permissionIDs sorted alphabetically by label.
 var gPermissions = SitePermissions.listPermissions()
   .filter(p => SitePermissions.getPermissionLabel(p) != null)
   .sort((a, b) => {
     let firstLabel = SitePermissions.getPermissionLabel(a);
     let secondLabel = SitePermissions.getPermissionLabel(b);
     return firstLabel.localeCompare(secondLabel);
@@ -49,21 +48,16 @@ function onLoadPermission(uri, principal
     permTab.hidden = false;
   } else {
     permTab.hidden = true;
   }
 }
 
 function onUnloadPermission() {
   Services.obs.removeObserver(permissionObserver, "perm-changed");
-
-  if (gUsageRequest) {
-    gUsageRequest.cancel();
-    gUsageRequest = null;
-  }
 }
 
 function initRow(aPartId) {
   createRow(aPartId);
 
   var checkbox = document.getElementById(aPartId + "Def");
   var command = document.getElementById("cmd_" + aPartId + "Toggle");
   var { state, scope } = SitePermissions.getForPrincipal(