forked from mirrors/gecko-dev
		
	The bug in question is that if a user opts into allowing one tracker on a given site for the session, new visits to that site will allow others trackers as well, not just the expected one. While we're here, we also improve the web console messages to show the same "allowing X due to opt in" message on new visits as well, not just the original one where the user initially opted-in for that shim. We might as well also land bug 1712959 into m-c, rather than waiting for the next webcompat release cycle. Differential Revision: https://phabricator.services.mozilla.com/D116642
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			841 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			841 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* This Source Code Form is subject to the terms of the Mozilla Public
 | 
						|
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 | 
						|
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | 
						|
 | 
						|
"use strict";
 | 
						|
 | 
						|
/* global AppConstants, ExtensionAPI, XPCOMUtils */
 | 
						|
 | 
						|
this.appConstants = class extends ExtensionAPI {
 | 
						|
  getAPI(context) {
 | 
						|
    return {
 | 
						|
      appConstants: {
 | 
						|
        getReleaseBranch: () => {
 | 
						|
          if (AppConstants.NIGHTLY_BUILD) {
 | 
						|
            return "nightly";
 | 
						|
          } else if (AppConstants.MOZ_DEV_EDITION) {
 | 
						|
            return "dev_edition";
 | 
						|
          } else if (AppConstants.EARLY_BETA_OR_EARLIER) {
 | 
						|
            return "early_beta_or_earlier";
 | 
						|
          } else if (AppConstants.RELEASE_OR_BETA) {
 | 
						|
            return "release_or_beta";
 | 
						|
          }
 | 
						|
          return "unknown";
 | 
						|
        },
 | 
						|
      },
 | 
						|
    };
 | 
						|
  }
 | 
						|
};
 |