&aboutPrivateBrowsing.learnMore2;
&aboutPrivateBrowsing.learnMore2.title;.
diff --git a/basilisk/confvars.sh b/basilisk/confvars.sh
index c7b0cd9..d2717f5 100644
--- a/basilisk/confvars.sh
+++ b/basilisk/confvars.sh
@@ -50,7 +50,6 @@ MOZ_DEVTOOLS=1
MOZ_SERVICES_COMMON=1
MOZ_SERVICES_SYNC=1
MOZ_SERVICES_HEALTHREPORT=
-MOZ_SAFE_BROWSING=
MOZ_GAMEPAD=1
MOZ_AV1=1
MOZ_SECURITY_SQLSTORE=1
diff --git a/basilisk/installer/package-manifest.in b/basilisk/installer/package-manifest.in
index 1fb928b..ea90972 100644
--- a/basilisk/installer/package-manifest.in
+++ b/basilisk/installer/package-manifest.in
@@ -537,19 +537,9 @@
@RESPATH@/browser/modules/*
@RESPATH@/modules/*
-#ifdef MOZ_URL_CLASSIFIER
-; Safe Browsing
-@RESPATH@/components/nsURLClassifier.manifest
-@RESPATH@/components/nsUrlClassifierHashCompleter.js
-@RESPATH@/components/nsUrlClassifierListManager.js
-@RESPATH@/components/nsUrlClassifierLib.js
-@RESPATH@/components/url-classifier.xpt
-#endif
-
; Private Browsing
@RESPATH@/components/privatebrowsing.xpt
@RESPATH@/components/PrivateBrowsing.manifest
-@RESPATH@/components/PrivateBrowsingTrackingProtectionWhitelist.js
; ANGLE GLES-on-D3D rendering library
#ifdef MOZ_ANGLE_RENDERER
diff --git a/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd b/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd
index ccb0d29..bcf9189 100644
--- a/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd
+++ b/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd
@@ -25,7 +25,3 @@
-
-
-
-
diff --git a/basilisk/locales/en-US/chrome/browser/browser.dtd b/basilisk/locales/en-US/chrome/browser/browser.dtd
index 044fd30..e651760 100644
--- a/basilisk/locales/en-US/chrome/browser/browser.dtd
+++ b/basilisk/locales/en-US/chrome/browser/browser.dtd
@@ -726,33 +726,6 @@ you can use these alternative items. Otherwise, their values should be empty. -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/basilisk/locales/en-US/chrome/browser/browser.properties b/basilisk/locales/en-US/chrome/browser/browser.properties
index abec30b..00dbb70 100644
--- a/basilisk/locales/en-US/chrome/browser/browser.properties
+++ b/basilisk/locales/en-US/chrome/browser/browser.properties
@@ -336,9 +336,6 @@ identity.identified.state_and_country=%S, %S
identity.icon.tooltip=Show site information
-trackingProtection.icon.activeTooltip=Tracking attempts blocked
-trackingProtection.icon.disabledTooltip=Tracking content detected
-
# Edit Bookmark UI
editBookmarkPanel.pageBookmarkedTitle=Page Bookmarked
editBookmarkPanel.pageBookmarkedDescription=%S will always remember this page for you.
diff --git a/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd b/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd
deleted file mode 100644
index 781fb53..0000000
--- a/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties b/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties
index c0b7e1b..8ebb867 100644
--- a/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties
+++ b/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties
@@ -19,8 +19,6 @@ acceptVeryLargeMinimumFont=Keep my changes anyway
#### Permissions Manager
-trackingprotectionpermissionstext=You have disabled Tracking Protection on these sites.
-trackingprotectionpermissionstitle=Exceptions - Tracking Protection
cookiepermissionstext=You can specify which websites are always or never allowed to store cookies and site data. Type the exact address of the site you want to manage and then click Block, Allow for Session, or Allow.
cookiepermissionstitle=Exceptions - Cookies and Site Data
addonspermissionstext=You can specify which websites are allowed to install add-ons. Type the exact address of the site you want to allow and then click Allow.
diff --git a/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd b/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd
index 8820e92..e9f3984 100644
--- a/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd
+++ b/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd
@@ -3,34 +3,9 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-#ifdef MOZ_SAFE_BROWSING
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-#else
-#endif
diff --git a/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd b/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd
deleted file mode 100644
index 33d2202..0000000
--- a/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- has been reported as an attack page and has been blocked based on your security preferences.">
-Attack pages try to install programs that steal private information, use your computer to attack others, or damage your system.
Some attack pages intentionally distribute harmful software, but many are compromised without the knowledge or permission of their owners.
">
-
-
-
- has been reported to contain unwanted software and has been blocked based on your security preferences.">
-Unwanted software pages try to install software that can be deceptive and affect your system in unexpected ways.">
-
-
-
- has been reported as a deceptive site and has been blocked based on your security preferences.">
-Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.
Entering any information on this web page may result in identity theft or other fraud.
">
-
diff --git a/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd b/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd
deleted file mode 100644
index 7444bcb..0000000
--- a/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
diff --git a/basilisk/locales/jar.mn b/basilisk/locales/jar.mn
index 345c052..11ff502 100644
--- a/basilisk/locales/jar.mn
+++ b/basilisk/locales/jar.mn
@@ -48,10 +48,6 @@
locale/browser/places/bookmarkProperties.properties (%chrome/browser/places/bookmarkProperties.properties)
locale/browser/preferences/selectBookmark.dtd (%chrome/browser/preferences/selectBookmark.dtd)
locale/browser/places/moveBookmarks.dtd (%chrome/browser/places/moveBookmarks.dtd)
-#ifdef MOZ_SAFE_BROWSING
- locale/browser/safebrowsing/phishing-afterload-warning-message.dtd (%chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd)
- locale/browser/safebrowsing/report-phishing.dtd (%chrome/browser/safebrowsing/report-phishing.dtd)
-#endif
locale/browser/feeds/subscribe.dtd (%chrome/browser/feeds/subscribe.dtd)
locale/browser/feeds/subscribe.properties (%chrome/browser/feeds/subscribe.properties)
locale/browser/migration/migration.dtd (%chrome/browser/migration/migration.dtd)
@@ -59,16 +55,10 @@
locale/browser/preferences/advanced.dtd (%chrome/browser/preferences/advanced.dtd)
locale/browser/preferences/applicationManager.dtd (%chrome/browser/preferences/applicationManager.dtd)
locale/browser/preferences/applicationManager.properties (%chrome/browser/preferences/applicationManager.properties)
-#ifdef MOZ_SAFE_BROWSING
- locale/browser/preferences/blocklists.dtd (%chrome/browser/preferences/blocklists.dtd)
-#endif
locale/browser/preferences/colors.dtd (%chrome/browser/preferences/colors.dtd)
locale/browser/preferences/cookies.dtd (%chrome/browser/preferences/cookies.dtd)
locale/browser/preferences/content.dtd (%chrome/browser/preferences/content.dtd)
locale/browser/preferences/connection.dtd (%chrome/browser/preferences/connection.dtd)
-#ifdef MOZ_SAFE_BROWSING
- locale/browser/preferences/donottrack.dtd (%chrome/browser/preferences/donottrack.dtd)
-#endif
locale/browser/preferences/applications.dtd (%chrome/browser/preferences/applications.dtd)
locale/browser/preferences/fonts.dtd (%chrome/browser/preferences/fonts.dtd)
locale/browser/preferences/main.dtd (%chrome/browser/preferences/main.dtd)
diff --git a/basilisk/themes/shared/incontentprefs/preferences.inc.css b/basilisk/themes/shared/incontentprefs/preferences.inc.css
index 20ea983..9f0b0d6 100644
--- a/basilisk/themes/shared/incontentprefs/preferences.inc.css
+++ b/basilisk/themes/shared/incontentprefs/preferences.inc.css
@@ -236,13 +236,6 @@ treecol {
/* Privacy pane */
-#trackingProtectionPBMLearnMore,
-#trackingProtectionLearnMore {
- margin-inline-start: 1.5em !important;
- margin-top: 0;
- font-weight: normal;
-}
-
.doNotTrackLearnMore {
margin-inline-start: calc(1em + 30px);
margin-bottom: 1em;
diff --git a/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm b/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm
index 1201ed6..e9c98ae 100644
--- a/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm
+++ b/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm
@@ -183,40 +183,6 @@ this.ControlCenter = {
}),
},
- trackingProtectionNoElements: {
- applyConfig: Task.async(function* () {
- Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true);
-
- yield loadPage(HTTP_PAGE);
- yield openIdentityPopup();
- }),
- },
-
- trackingProtectionEnabled: {
- applyConfig: Task.async(function* () {
- Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true);
- yield UrlClassifierTestUtils.addTestTrackers();
-
- yield loadPage(TRACKING_PAGE);
- yield openIdentityPopup();
- }),
- },
-
- trackingProtectionDisabled: {
- applyConfig: Task.async(function* () {
- let browserWindow = Services.wm.getMostRecentWindow("navigator:browser");
- let gBrowser = browserWindow.gBrowser;
- Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true);
- yield UrlClassifierTestUtils.addTestTrackers();
-
- yield loadPage(TRACKING_PAGE);
- yield openIdentityPopup();
- // unblock the page
- gBrowser.ownerGlobal.document.querySelector("#tracking-action-unblock").click();
- yield BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, TRACKING_PAGE);
- yield openIdentityPopup();
- }),
- },
},
};
--
cgit v1.2.3
From 9abdd5ee17ece53c42a1df9861e4d0b73a09bc69 Mon Sep 17 00:00:00 2001
From: Jeremy Andrews
Date: Thu, 21 Oct 2021 19:07:26 -0500
Subject: Issue MoonchildProductions/GRE#3025 - Remove MOZ_AUSTRALIS define
from Basilisk.
---
basilisk/configure.in | 5 +----
basilisk/confvars.sh | 1 -
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/basilisk/configure.in b/basilisk/configure.in
index 13f2ad5..f7d6864 100644
--- a/basilisk/configure.in
+++ b/basilisk/configure.in
@@ -8,9 +8,6 @@ dnl Things we need to carry from confvars.sh
AC_DEFINE(MOZ_PHOENIX)
AC_SUBST(MOZ_PHOENIX)
-AC_DEFINE(MOZ_AUSTRALIS)
-AC_SUBST(MOZ_AUSTRALIS)
-
AC_DEFINE(MC_BASILISK)
AC_SUBST(MC_BASILISK)
@@ -22,4 +19,4 @@ dnl ========================================================
MOZ_ARG_DISABLE_BOOL(sync,
[ --disable-sync Disable Sync],
MOZ_SERVICES_SYNC=,
- MOZ_SERVICES_SYNC=1)
\ No newline at end of file
+ MOZ_SERVICES_SYNC=1)
diff --git a/basilisk/confvars.sh b/basilisk/confvars.sh
index d2717f5..d696e3c 100644
--- a/basilisk/confvars.sh
+++ b/basilisk/confvars.sh
@@ -6,7 +6,6 @@
MOZ_APP_BASENAME=Basilisk
MOZ_APP_VENDOR=Moonchild
MOZ_PHOENIX=1
-MOZ_AUSTRALIS=1
MC_BASILISK=1
MOZ_UPDATER=
--
cgit v1.2.3
From 2e37a47a8f0c4778beb51c528361ad313c2882b8 Mon Sep 17 00:00:00 2001
From: Jeremy Andrews
Date: Thu, 21 Oct 2021 19:44:27 -0500
Subject: No Issue - Use MOZILLA_DIR in client.mk and remove config/makefiles.
---
client.mk | 45 ++++++++--------
config/makefiles/autotargets.mk | 94 --------------------------------
config/makefiles/makeutils.mk | 117 ----------------------------------------
3 files changed, 23 insertions(+), 233 deletions(-)
delete mode 100644 config/makefiles/autotargets.mk
delete mode 100644 config/makefiles/makeutils.mk
diff --git a/client.mk b/client.mk
index e89bbe6..4c23a7a 100644
--- a/client.mk
+++ b/client.mk
@@ -46,7 +46,6 @@ endef
endif
endif
-
CWD := $(CURDIR)
ifneq (1,$(words $(CWD)))
$(error The platform directory cannot be located in a path with spaces.)
@@ -64,11 +63,13 @@ TOPSRCDIR := $(CWD)
endif
endif
+MOZILLA_DIR=$(TOPSRCDIR)/platform
+
SH := /bin/sh
PERL ?= perl
PYTHON ?= $(shell which python2.7 > /dev/null 2>&1 && echo python2.7 || echo python)
-CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/platform/build/autoconf/config.guess)
+CONFIG_GUESS_SCRIPT := $(wildcard $(MOZILLA_DIR)/build/autoconf/config.guess)
ifdef CONFIG_GUESS_SCRIPT
CONFIG_GUESS := $(shell $(CONFIG_GUESS_SCRIPT))
endif
@@ -150,8 +151,8 @@ MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
# 'configure' scripts generated by autoconf.
CONFIGURES := $(TOPSRCDIR)/configure
-CONFIGURES += $(TOPSRCDIR)/platform/configure
-CONFIGURES += $(TOPSRCDIR)/platform/js/src/configure
+CONFIGURES += $(MOZILLA_DIR)/configure
+CONFIGURES += $(MOZILLA_DIR)/js/src/configure
# Make targets that are going to be passed to the real build system
OBJDIR_TARGETS = install export libs clean realclean distclean maybe_clobber_profiledbuild upload sdk installer package package-compare stage-package source-package l10n-check automation/build
@@ -164,8 +165,8 @@ build::
$(MAKE) -f $(TOPSRCDIR)/client.mk $(if $(MOZ_PGO),profiledbuild,realbuild) CREATE_MOZCONFIG_JSON=
# Define mkdir
-include $(TOPSRCDIR)/config/makefiles/makeutils.mk
-include $(TOPSRCDIR)/config/makefiles/autotargets.mk
+include $(MOZILLA_DIR)/config/makefiles/makeutils.mk
+include $(MOZILLA_DIR)/config/makefiles/autotargets.mk
# Create a makefile containing the mk_add_options values from mozconfig,
# but only do so when OBJDIR is defined (see further above).
@@ -242,7 +243,7 @@ profiledbuild::
ifdef MOZ_UNIFY_BDATE
ifndef MOZ_BUILD_DATE
ifdef MOZ_BUILD_PROJECTS
-MOZ_BUILD_DATE = $(shell $(PYTHON) $(TOPSRCDIR)/platform/build/variables.py buildid_header | awk '{print $$3}')
+MOZ_BUILD_DATE = $(shell $(PYTHON) $(MOZILLA_DIR)/build/variables.py buildid_header | awk '{print $$3}')
export MOZ_BUILD_DATE
endif
endif
@@ -295,11 +296,11 @@ CONFIG_CACHE = $(wildcard $(OBJDIR)/config.cache)
EXTRA_CONFIG_DEPS := \
$(TOPSRCDIR)/aclocal.m4 \
- $(TOPSRCDIR)/platform/aclocal.m4 \
- $(TOPSRCDIR)/platform/old-configure.in \
- $(wildcard $(TOPSRCDIR)/platform/build/autoconf/*.m4) \
- $(TOPSRCDIR)/platform/js/src/aclocal.m4 \
- $(TOPSRCDIR)/platform/js/src/old-configure.in \
+ $(MOZILLA_DIR)/aclocal.m4 \
+ $(MOZILLA_DIR)/old-configure.in \
+ $(wildcard $(MOZILLA_DIR)/build/autoconf/*.m4) \
+ $(MOZILLA_DIR)/js/src/aclocal.m4 \
+ $(MOZILLA_DIR)/js/src/old-configure.in \
$(NULL)
$(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS)
@@ -308,15 +309,15 @@ $(CONFIGURES): %: %.in $(EXTRA_CONFIG_DEPS)
chmod +x $@
CONFIG_STATUS_DEPS := \
- $(wildcard $(TOPSRCDIR)/platform/ldap/sdks/c-sdk/configure) \
+ $(wildcard $(MOZILLA_DIR)/ldap/sdks/c-sdk/configure) \
$(wildcard $(TOPSRCDIR)/*/confvars.sh) \
$(CONFIGURES) \
- $(TOPSRCDIR)/platform/CLOBBER \
- $(TOPSRCDIR)/platform/nsprpub/configure \
- $(TOPSRCDIR)/platform/config/milestone.txt \
- $(TOPSRCDIR)/platform/build/virtualenv_packages.txt \
- $(TOPSRCDIR)/platform/python/mozbuild/mozbuild/virtualenv.py \
- $(TOPSRCDIR)/platform/testing/mozbase/packages.txt \
+ $(MOZILLA_DIR)/CLOBBER \
+ $(MOZILLA_DIR)/nsprpub/configure \
+ $(MOZILLA_DIR)/config/milestone.txt \
+ $(MOZILLA_DIR)/build/virtualenv_packages.txt \
+ $(MOZILLA_DIR)/python/mozbuild/mozbuild/virtualenv.py \
+ $(MOZILLA_DIR)/testing/mozbase/packages.txt \
$(OBJDIR)/.mozconfig.json \
$(NULL)
@@ -333,9 +334,9 @@ else
CONFIGURE = $(TOPSRCDIR)/configure
endif
-$(OBJDIR)/CLOBBER: $(TOPSRCDIR)/platform/CLOBBER
- $(PYTHON) $(TOPSRCDIR)/platform/config/pythonpath.py -I $(TOPSRCDIR)/platform/testing/mozbase/mozfile \
- $(TOPSRCDIR)/platform/python/mozbuild/mozbuild/controller/clobber.py $(TOPSRCDIR)/platform $(OBJDIR)
+$(OBJDIR)/CLOBBER: $(MOZILLA_DIR)/CLOBBER
+ $(PYTHON) $(MOZILLA_DIR)/config/pythonpath.py -I $(MOZILLA_DIR)/testing/mozbase/mozfile \
+ $(MOZILLA_DIR)/python/mozbuild/mozbuild/controller/clobber.py $(MOZILLA_DIR) $(OBJDIR)
configure-files: $(CONFIGURES)
diff --git a/config/makefiles/autotargets.mk b/config/makefiles/autotargets.mk
deleted file mode 100644
index 16e06fb..0000000
--- a/config/makefiles/autotargets.mk
+++ /dev/null
@@ -1,94 +0,0 @@
-# -*- makefile -*-
-# vim:set ts=8 sw=8 sts=8 noet:
-#
-# 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/.
-#
-
-ifndef INCLUDED_AUTOTARGETS_MK #{
-
-# Conditional does not wrap the entire file so multiple
-# includes will be able to accumulate dependencies.
-
-###########################################################################
-# AUTO_DEPS - A list of deps/targets drived from other macros.
-###########################################################################
-
-MKDIR ?= mkdir -p
-TOUCH ?= touch
-
-# declare for local use, rules.mk may not have been loaded
-space = $(NULL) $(NULL)
-
-# Deps will be considered intermediate when used as a pre-requisite for
-# wildcard targets. Inhibit their removal, mkdir -p is a standalone op.
-.PRECIOUS: %/.mkdir.done
-
-#########################
-##---] FUNCTIONS [---##
-#########################
-
-# Squeeze can be overzealous, restore root for abspath
-getPathPrefix =$(if $(filter /%,$(1)),/)
-
-# Squeeze '//' from the path, easily created by string functions
-_slashSqueeze =$(foreach val,$(getargv),$(call getPathPrefix,$(val))$(subst $(space),/,$(strip $(subst /,$(space),$(val)))))
-
-# Squeeze extraneous directory slashes from the path
-# o protect embedded spaces within the path
-# o replace //+ sequences with /
-slash_strip = \
- $(strip \
- $(subst <--[**]-->,$(space),\
- $(call _slashSqueeze,\
- $(subst $(space),<--[**]-->,$(1))\
- )))
-
-# Extract directory path from a dependency file.
-mkdir_stem =$(foreach val,$(getargv),$(subst /.mkdir.done,$(NULL),$(val)))
-
-## Generate timestamp file for threadsafe directory creation
-mkdir_deps =$(foreach dir,$(getargv),$(call slash_strip,$(dir)/.mkdir.done))
-
-#######################
-##---] TARGETS [---##
-#######################
-
-%/.mkdir.done: # mkdir -p -p => mkdir -p
- $(subst $(space)-p,$(null),$(MKDIR)) -p '$(dir $@)'
-# Make the timestamp old enough for not being a problem with symbolic links
-# targets depending on it. Use Jan 3, 1980 to accomodate any timezone where
-# 198001010000 would translate to something older than FAT epoch.
- @$(TOUCH) -t 198001030000 '$@'
-
-# A handful of makefiles are attempting "mkdir dot".
-# tbpl/valgrind builds are using this target
-# https://bugzilla.mozilla.org/show_bug.cgi?id=837754
-.mkdir.done:
- @echo 'WARNING: $(MKDIR) -dot- requested by $(MAKE) -C $(CURDIR) $(MAKECMDGOALS)'
- @$(TOUCH) -t 198001030000 '$@'
-
-INCLUDED_AUTOTARGETS_MK = 1
-endif #}
-
-
-## Accumulate deps and cleanup
-ifneq (,$(GENERATED_DIRS))
- GENERATED_DIRS := $(strip $(sort $(GENERATED_DIRS)))
- tmpauto :=$(call mkdir_deps,GENERATED_DIRS)
- GENERATED_DIRS_DEPS +=$(tmpauto)
- GARBAGE_DIRS +=$(GENERATED_DIRS)
-endif
-
-#################################################################
-# One ring/dep to rule them all:
-# config/rules.mk::all target is available by default
-# Add $(AUTO_DEPS) as an explicit target dependency when needed.
-#################################################################
-
-AUTO_DEPS +=$(GENERATED_DIRS_DEPS)
-AUTO_DEPS := $(strip $(sort $(AUTO_DEPS)))
-
-# Complain loudly if deps have not loaded so getargv != $(NULL)
-$(call requiredfunction,getargv)
diff --git a/config/makefiles/makeutils.mk b/config/makefiles/makeutils.mk
deleted file mode 100644
index d7c5c97..0000000
--- a/config/makefiles/makeutils.mk
+++ /dev/null
@@ -1,117 +0,0 @@
-# -*- makefile -*-
-# vim:set ts=8 sw=8 sts=8 noet:
-#
-# 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/.
-
-## Identify function argument types
-istype =$(if $(value ${1}),list,scalar)
-isval =$(if $(filter-out list,$(call istype,${1})),true)
-isvar =$(if $(filter-out scalar,$(call istype,${1})),true)
-
-# Access up to 9 arguments passed, option needed to emulate $*
-# Inline for function expansion, do not use $(call )
-argv =$(strip
-argv +=$(if $(1), $(1))$(if $(2), $(2))$(if $(3), $(3))$(if $(4), $(4))
-argv +=$(if $(5), $(5))$(if $(6), $(6))$(if $(7), $(7))$(if $(8), $(8))
-argv +=$(if $(9), $(9))
-argv +=$(if $(10), $(error makeutils.mk::argv can only handle 9 arguments))
-argv +=)
-
-###########################################################################
-## Access function args as a simple list, inline within user functions.
-## Usage: $(info ** $(call banner,$(getargv)))
-## $(call banner,scalar)
-## $(call banner,list0 list1 list2)
-## $(call banner,ref) ; ref=foo bar tans
-## getarglist() would be a more accurate name but is longer to type
-getargv = $(if $(call isvar,$(1)),$($(1)),$(argv))
-
-###########################################################################
-# Strip [n] leading options from an argument list. This will allow passing
-# extra args to user functions that will not propogate to sub-$(call )'s
-# Usage: $(call subargv,2)
-subargv =$(wordlist $(1),$(words $(getargv)),$(getargv))
-
-###########################################################################
-# Intent: Display a distinct banner heading in the output stream
-# Usage: $(call banner,BUILDING: foo bar tans)
-# Debug:
-# target-preqs = \
-# $(call banner,target-preqs-BEGIN) \
-# foo bar tans \
-# $(call banner,target-preqs-END) \
-# $(NULL)
-# target: $(target-preqs)
-
-banner = \
-$(info ) \
-$(info ***************************************************************************) \
-$(info ** $(getargv)) \
-$(info ***************************************************************************) \
-$(NULL)
-
-#####################################################################
-# Intent: Determine if a string or pattern is contained in a list
-# Usage: strcmp - $(call if_XinY,clean,$(MAKECMDGOALS))
-# : pattern - $(call if_XinY,clean%,$(MAKECMDGOALS))
-is_XinY =$(filter $(1),$(call subargv,3,$(getargv)))
-
-#####################################################################
-# Provide an alternate var to support testing
-ifdef MAKEUTILS_UNIT_TEST
- mcg_goals=TEST_MAKECMDGOALS
-else
- mcg_goals=MAKECMDGOALS
-endif
-
-# Intent: Conditionals for detecting common/tier target use
-isTargetStem = $(sort \
- $(foreach var,$(getargv),\
- $(foreach pat,$(var)% %$(var),\
- $(call is_XinY,$(pat),${$(mcg_goals)})\
- )))
-isTargetStemClean = $(call isTargetStem,clean)
-isTargetStemExport = $(call isTargetStem,export)
-isTargetStemLibs = $(call isTargetStem,libs)
-isTargetStemTools = $(call isTargetStem,tools)
-
-##################################################
-# Intent: Validation functions / unit test helpers
-
-errorifneq =$(if $(subst $(strip $(1)),$(NULL),$(strip $(2))),$(error expected [$(1)] but found [$(2)]))
-
-# Intent: verify function declaration exists
-requiredfunction =$(foreach func,$(1) $(2) $(3) $(4) $(5) $(6) $(7) $(8) $(9),$(if $(value $(func)),$(NULL),$(error required function [$(func)] is unavailable)))
-
-
-
-## http://www.gnu.org/software/make/manual/make.html#Call-Function
-## Usage: o = $(call map,origin,o map $(MAKE))
-map = $(foreach val,$(2),$(call $(1),$(val)))
-
-
-## Disable checking for clean targets
-ifeq (,$(filter %clean clean%,$(MAKECMDGOALS))) #{
-
-# Usage: $(call checkIfEmpty,[error|warning] foo NULL bar)
-checkIfEmpty =$(foreach var,$(wordlist 2,100,$(argv)),$(if $(strip $($(var))),$(NOP),$(call $(1),Variable $(var) does not contain a value)))
-
-# Usage: $(call errorIfEmpty,foo NULL bar)
-errorIfEmpty =$(call checkIfEmpty,error $(argv))
-warnIfEmpty =$(call checkIfEmpty,warning $(argv))
-
-endif #}
-
-###########################################################################
-## Common makefile library loader
-###########################################################################
-topORerr =$(if $(topsrcdir),$(topsrcdir),$(error topsrcdir is not defined))
-
-ifdef USE_AUTOTARGETS_MK # mkdir_deps
- include $(topORerr)/config/makefiles/autotargets.mk
-endif
-
-## copy(src, dst): recursive copy
-copy_dir = (cd $(1)/. && $(TAR) $(TAR_CREATE_FLAGS) - .) | (cd $(2)/. && tar -xf -)
--
cgit v1.2.3
From 5a6b0717eb7d0bf9b8538d6cc40bf53649c6b31c Mon Sep 17 00:00:00 2001
From: Jeremy Andrews
Date: Sat, 30 Oct 2021 20:05:16 -0500
Subject: Issue MoonchildProductions/GRE#3031 - Remove extraneous build backend
references.
---
basilisk/installer/Makefile.in | 16 ----------------
basilisk/installer/package-manifest.in | 6 ------
basilisk/locales/jar.mn | 5 -----
basilisk/moz.build | 7 -------
4 files changed, 34 deletions(-)
diff --git a/basilisk/installer/Makefile.in b/basilisk/installer/Makefile.in
index dd16ecd..0f27be7 100644
--- a/basilisk/installer/Makefile.in
+++ b/basilisk/installer/Makefile.in
@@ -15,12 +15,6 @@ MOZ_PKG_DUPEFLAGS = -f $(srcdir)/allowed-dupes.mn
# Some files have been already bundled with xulrunner
MOZ_PKG_FATAL_WARNINGS = 1
-# When packaging an artifact build not all xpt files expected by the
-# packager will be present.
-ifdef MOZ_ARTIFACT_BUILDS
-MOZ_PKG_FATAL_WARNINGS =
-endif
-
DEFINES += -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
ifdef MOZ_DEBUG
@@ -46,10 +40,6 @@ ifdef NSS_DISABLE_DBM
DEFINES += -DNSS_DISABLE_DBM=1
endif
-ifdef MOZ_ARTIFACT_BUILDS
-DEFINES += -DMOZ_ARTIFACT_BUILDS=1
-endif
-
DEFINES += -DJAREXT=
ifdef MOZ_ANGLE_RENDERER
@@ -149,14 +139,8 @@ endif
endif
-# Builds using the hybrid FasterMake/RecursiveMake backend will
-# fail to produce a langpack. See bug 1255096.
make-langpack:
-ifeq (,$(filter FasterMake+RecursiveMake,$(BUILD_BACKENDS)))
$(MAKE) -C $(DEPTH)/basilisk/locales langpack
-else
- @echo WARNING: "Language Pack was not generated due to using the hybrid FasterMake/RecursiveMake backend." >&2
-endif
libs:: make-langpack
diff --git a/basilisk/installer/package-manifest.in b/basilisk/installer/package-manifest.in
index ea90972..ee5d205 100644
--- a/basilisk/installer/package-manifest.in
+++ b/basilisk/installer/package-manifest.in
@@ -140,12 +140,6 @@
#endif
; [Components]
-#ifdef MOZ_ARTIFACT_BUILDS
-@RESPATH@/components/prebuilt-interfaces.manifest
-@RESPATH@/components/interfaces.xpt
-@RESPATH@/browser/components/prebuilt-interfaces.manifest
-@RESPATH@/browser/components/interfaces.xpt
-#endif
@RESPATH@/browser/components/components.manifest
@RESPATH@/components/alerts.xpt
#ifdef ACCESSIBILITY
diff --git a/basilisk/locales/jar.mn b/basilisk/locales/jar.mn
index 11ff502..d123fb1 100644
--- a/basilisk/locales/jar.mn
+++ b/basilisk/locales/jar.mn
@@ -85,13 +85,8 @@
locale/browser/aboutSyncTabs.dtd (%chrome/browser/aboutSyncTabs.dtd)
#endif
% resource search-plugins chrome://browser/locale/searchplugins/
-#if BUILD_FASTER
- locale/browser/searchplugins/ (searchplugins/*.xml)
- locale/browser/searchplugins/list.json (search/list.json)
-#else
locale/browser/searchplugins/ (.deps/generated_@AB_CD@/*.xml)
locale/browser/searchplugins/list.json (.deps/generated_@AB_CD@/list.json)
-#endif
% locale browser-region @AB_CD@ %locale/browser-region/
locale/browser-region/region.properties (%chrome/browser-region/region.properties)
# the following files are browser-specific overrides
diff --git a/basilisk/moz.build b/basilisk/moz.build
index 7166b81..74a63c7 100644
--- a/basilisk/moz.build
+++ b/basilisk/moz.build
@@ -29,10 +29,3 @@ TEST_DIRS += [
DIST_SUBDIR = 'browser'
export('DIST_SUBDIR')
-
-if CONFIG['MOZ_ARTIFACT_BUILDS']:
- # Ensure a pre-built interfaces.xpt installed to the objdir by the artifact
- # code is included by the top-level chrome.manifest.
- EXTRA_COMPONENTS += [
- '../../build/prebuilt-interfaces.manifest',
- ]
--
cgit v1.2.3
From 97d2c9f50232e06b7a3702b30c1997e9bc8adb19 Mon Sep 17 00:00:00 2001
From: Moonchild
Date: Mon, 1 Nov 2021 00:24:15 +0000
Subject: Issue MoonchildProductions/GRE#3029 - Remove telemetry from FE
---
basilisk/app/nsBrowserApp.cpp | 5 -
basilisk/app/profile/basilisk.js | 8 +-
basilisk/base/content/aboutNetError.xhtml | 6 -
.../base/content/abouthealthreport/abouthealth.js | 46 --
basilisk/base/content/baseMenuOverlay.xul | 7 -
.../content/browser-data-submission-info-bar.js | 6 -
.../content/browser-fullScreenAndPointerLock.js | 5 -
basilisk/base/content/browser-media.js | 22 +-
basilisk/base/content/browser-plugins.js | 27 +-
basilisk/base/content/browser.js | 127 +-----
basilisk/base/content/content.js | 6 -
basilisk/base/content/newtab/page.js | 3 -
basilisk/base/content/newtab/sites.js | 20 -
basilisk/base/content/tabbrowser.xml | 92 +---
basilisk/base/content/urlbarBindings.xml | 11 -
basilisk/components/migration/AutoMigrate.jsm | 32 --
.../components/migration/FirefoxProfileMigrator.js | 74 +---
basilisk/components/migration/MigrationUtils.jsm | 26 --
basilisk/components/migration/content/migration.js | 67 ---
basilisk/components/nsBrowserContentHandler.js | 15 -
basilisk/components/nsBrowserGlue.js | 140 ------
.../places/content/browserPlacesViews.js | 3 -
basilisk/components/places/content/places.js | 2 -
.../components/preferences/in-content/advanced.js | 65 ---
.../components/preferences/in-content/advanced.xul | 42 --
.../components/preferences/in-content/content.js | 5 -
.../preferences/in-content/preferences.js | 34 --
basilisk/components/search/content/searchReset.js | 23 -
.../components/search/service/nsSearchService.js | 24 --
.../components/selfsupport/SelfSupportService.js | 25 --
basilisk/components/sessionstore/SessionFile.jsm | 26 --
basilisk/components/sessionstore/SessionStore.jsm | 33 +-
basilisk/components/sessionstore/SessionWorker.js | 5 -
.../components/sessionstore/StartupPerformance.jsm | 12 -
.../sessionstore/content/content-sessionStore.js | 19 +-
.../components/sessionstore/nsSessionStartup.js | 5 -
basilisk/installer/allowed-dupes.mn | 4 -
basilisk/installer/package-manifest.in | 4 -
.../locales/en-US/chrome/browser/aboutDialog.dtd | 2 -
.../en-US/chrome/browser/browser.properties | 5 -
.../en-US/chrome/browser/preferences/advanced.dtd | 5 -
basilisk/modules/BrowserUsageTelemetry.jsm | 468 ---------------------
basilisk/modules/ContentCrashHandlers.jsm | 17 -
basilisk/modules/ContentLinkHandler.jsm | 36 --
basilisk/modules/ContentSearch.jsm | 2 -
basilisk/modules/PermissionUI.jsm | 4 +-
basilisk/modules/PluginContent.jsm | 51 ---
basilisk/modules/ProcessHangMonitor.jsm | 11 -
basilisk/modules/moz.build | 1 -
platform | 2 +-
50 files changed, 18 insertions(+), 1662 deletions(-)
delete mode 100644 basilisk/modules/BrowserUsageTelemetry.jsm
diff --git a/basilisk/app/nsBrowserApp.cpp b/basilisk/app/nsBrowserApp.cpp
index 66ea8ae..deda833 100644
--- a/basilisk/app/nsBrowserApp.cpp
+++ b/basilisk/app/nsBrowserApp.cpp
@@ -32,7 +32,6 @@
#include "nsXPCOMPrivate.h" // for MAXPATHLEN and XPCOM_DLL
#include "mozilla/Sprintf.h"
-#include "mozilla/Telemetry.h"
#include "mozilla/WindowsDllBlocklist.h"
#if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID)
@@ -110,7 +109,6 @@ static bool IsArg(const char* arg, const char* s)
XRE_GetFileFromPathType XRE_GetFileFromPath;
XRE_CreateAppDataType XRE_CreateAppData;
XRE_FreeAppDataType XRE_FreeAppData;
-XRE_TelemetryAccumulateType XRE_TelemetryAccumulate;
XRE_StartupTimelineRecordType XRE_StartupTimelineRecord;
XRE_mainType XRE_main;
XRE_StopLateWriteChecksType XRE_StopLateWriteChecks;
@@ -128,7 +126,6 @@ static const nsDynamicFunctionLoad kXULFuncs[] = {
{ "XRE_GetFileFromPath", (NSFuncPtr*) &XRE_GetFileFromPath },
{ "XRE_CreateAppData", (NSFuncPtr*) &XRE_CreateAppData },
{ "XRE_FreeAppData", (NSFuncPtr*) &XRE_FreeAppData },
- { "XRE_TelemetryAccumulate", (NSFuncPtr*) &XRE_TelemetryAccumulate },
{ "XRE_StartupTimelineRecord", (NSFuncPtr*) &XRE_StartupTimelineRecord },
{ "XRE_main", (NSFuncPtr*) &XRE_main },
{ "XRE_StopLateWriteChecks", (NSFuncPtr*) &XRE_StopLateWriteChecks },
@@ -370,8 +367,6 @@ int main(int argc, char* argv[], char* envp[])
return 255;
}
- XRE_StartupTimelineRecord(mozilla::StartupTimeline::START, start);
-
#ifdef MOZ_BROWSER_CAN_BE_CONTENTPROC
XRE_EnableSameExecutableForContentProc();
#endif
diff --git a/basilisk/app/profile/basilisk.js b/basilisk/app/profile/basilisk.js
index d97660d..0ca123f 100644
--- a/basilisk/app/profile/basilisk.js
+++ b/basilisk/app/profile/basilisk.js
@@ -1190,14 +1190,10 @@ pref("media.gmp-widevinecdm.visible", true);
pref("media.gmp-widevinecdm.enabled", true);
#endif
-// Play with different values of the decay time and get telemetry,
+// Play with different values of the decay time,
// 0 means to randomize (and persist) the experiment value in users' profiles,
// -1 means no experiment is run and we use the preferred value for frecency (6h)
-pref("browser.cache.frecency_experiment", 0);
-
-// Telemetry settings.
-// Determines if Telemetry pings can be archived locally.
-pref("toolkit.telemetry.archive.enabled", true);
+pref("browser.cache.frecency_experiment", -1);
// Enable GMP support in the addon manager.
pref("media.gmp-provider.enabled", true);
diff --git a/basilisk/base/content/aboutNetError.xhtml b/basilisk/base/content/aboutNetError.xhtml
index 5ff79ea..77aca22 100644
--- a/basilisk/base/content/aboutNetError.xhtml
+++ b/basilisk/base/content/aboutNetError.xhtml
@@ -123,12 +123,6 @@
document.getElementById("advancedButton")
.addEventListener("click", function togglePanelVisibility() {
toggleDisplay(panel);
-
- if (panel.style.display == "block") {
- // send event to trigger telemetry ping
- var event = new CustomEvent("AboutNetErrorUIExpanded", {bubbles:true});
- document.dispatchEvent(event);
- }
});
if (allowOverride) {
diff --git a/basilisk/base/content/abouthealthreport/abouthealth.js b/basilisk/base/content/abouthealthreport/abouthealth.js
index 66cbe16..b8ae2b1 100644
--- a/basilisk/base/content/abouthealthreport/abouthealth.js
+++ b/basilisk/base/content/abouthealthreport/abouthealth.js
@@ -11,7 +11,6 @@ Cu.import("resource://gre/modules/Services.jsm");
const prefs = new Preferences("datareporting.healthreport.");
-const PREF_UNIFIED = "toolkit.telemetry.unified";
const PREF_REPORTING_URL = "datareporting.healthreport.about.reportUrl";
var healthReportWrapper = {
@@ -48,49 +47,10 @@ var healthReportWrapper = {
}
},
- sendTelemetryPingList: function () {
- console.log("AboutHealthReport: Collecting Telemetry ping list.");
- MozSelfSupport.getTelemetryPingList().then((list) => {
- console.log("AboutHealthReport: Sending Telemetry ping list.");
- this.injectData("telemetry-ping-list", list);
- }).catch((ex) => {
- console.log("AboutHealthReport: Collecting ping list failed: " + ex);
- });
- },
-
- sendTelemetryPingData: function (pingId) {
- console.log("AboutHealthReport: Collecting Telemetry ping data.");
- MozSelfSupport.getTelemetryPing(pingId).then((ping) => {
- console.log("AboutHealthReport: Sending Telemetry ping data.");
- this.injectData("telemetry-ping-data", {
- id: pingId,
- pingData: ping,
- });
- }).catch((ex) => {
- console.log("AboutHealthReport: Loading ping data failed: " + ex);
- this.injectData("telemetry-ping-data", {
- id: pingId,
- error: "error-generic",
- });
- });
- },
-
sendCurrentEnvironment: function () {
- console.log("AboutHealthReport: Sending Telemetry environment data.");
- MozSelfSupport.getCurrentTelemetryEnvironment().then((environment) => {
- this.injectData("telemetry-current-environment-data", environment);
- }).catch((ex) => {
- console.log("AboutHealthReport: Collecting current environment data failed: " + ex);
- });
},
sendCurrentPingData: function () {
- console.log("AboutHealthReport: Sending current Telemetry ping data.");
- MozSelfSupport.getCurrentTelemetrySubsessionPing().then((ping) => {
- this.injectData("telemetry-current-ping-data", ping);
- }).catch((ex) => {
- console.log("AboutHealthReport: Collecting current ping data failed: " + ex);
- });
},
injectData: function (type, content) {
@@ -129,12 +89,6 @@ var healthReportWrapper = {
case "RequestCurrentPrefs":
this.updatePrefState();
break;
- case "RequestTelemetryPingList":
- this.sendTelemetryPingList();
- break;
- case "RequestTelemetryPingData":
- this.sendTelemetryPingData(evt.detail.id);
- break;
case "RequestCurrentEnvironment":
this.sendCurrentEnvironment();
break;
diff --git a/basilisk/base/content/baseMenuOverlay.xul b/basilisk/base/content/baseMenuOverlay.xul
index def549b..445ce8d 100644
--- a/basilisk/base/content/baseMenuOverlay.xul
+++ b/basilisk/base/content/baseMenuOverlay.xul
@@ -57,13 +57,6 @@
onclick="checkForMiddleClick(this, event);"
label="&helpKeyboardShortcuts.label;"
accesskey="&helpKeyboardShortcuts.accesskey;"/>
-#ifdef MOZ_TELEMETRY_REPORTING
-
-#endif
{
if (topic == "Migration:ItemError") {
sawErrors = true;
} else if (topic == "Migration:Ended") {
- histogram.add(25);
- if (sawErrors) {
- histogram.add(26);
- }
Services.obs.removeObserver(migrationObserver, "Migration:Ended");
Services.obs.removeObserver(migrationObserver, "Migration:ItemError");
Services.prefs.setCharPref(kAutoMigrateBrowserPref, pickedKey);
@@ -132,7 +122,6 @@ const AutoMigrate = {
Services.obs.addObserver(migrationObserver, "Migration:Ended", false);
Services.obs.addObserver(migrationObserver, "Migration:ItemError", false);
migrator.migrate(this.resourceTypesToUse, profileStartup, profileToMigrate);
- histogram.add(20);
},
/**
@@ -209,50 +198,35 @@ const AutoMigrate = {
undo: Task.async(function* () {
let browserId = Preferences.get(kAutoMigrateBrowserPref, "unknown");
- let histogram = Services.telemetry.getHistogramById("FX_STARTUP_MIGRATION_AUTOMATED_IMPORT_UNDO");
- histogram.add(0);
if (!(yield this.canUndo())) {
- histogram.add(5);
throw new Error("Can't undo!");
}
this._pendingUndoTasks = true;
this._removeNotificationBars();
- histogram.add(10);
let readPromise = OS.File.read(kUndoStateFullPath, {
encoding: "utf-8",
compression: "lz4",
});
let stateData = this._dejsonifyUndoState(yield readPromise);
- histogram.add(12);
this._errorMap = {bookmarks: 0, visits: 0, logins: 0};
- let reportErrorTelemetry = (type) => {
- let histogramId = `FX_STARTUP_MIGRATION_UNDO_${type.toUpperCase()}_ERRORCOUNT`;
- Services.telemetry.getKeyedHistogramById(histogramId).add(browserId, this._errorMap[type]);
- };
yield this._removeUnchangedBookmarks(stateData.get("bookmarks")).catch(ex => {
Cu.reportError("Uncaught exception when removing unchanged bookmarks!");
Cu.reportError(ex);
});
- reportErrorTelemetry("bookmarks");
- histogram.add(15);
yield this._removeSomeVisits(stateData.get("visits")).catch(ex => {
Cu.reportError("Uncaught exception when removing history visits!");
Cu.reportError(ex);
});
- reportErrorTelemetry("visits");
- histogram.add(20);
yield this._removeUnchangedLogins(stateData.get("logins")).catch(ex => {
Cu.reportError("Uncaught exception when removing unchanged logins!");
Cu.reportError(ex);
});
- reportErrorTelemetry("logins");
- histogram.add(25);
// This is async, but no need to wait for it.
NewTabUtils.links.populateCache(() => {
@@ -260,7 +234,6 @@ const AutoMigrate = {
}, true);
this._purgeUndoState(this.UNDO_REMOVED_REASON_UNDO_USED);
- histogram.add(30);
}),
_removeNotificationBars() {
@@ -288,10 +261,6 @@ const AutoMigrate = {
let migrationBrowser = Preferences.get(kAutoMigrateBrowserPref, "unknown");
Services.prefs.clearUserPref(kAutoMigrateBrowserPref);
-
- let histogram =
- Services.telemetry.getKeyedHistogramById("FX_STARTUP_MIGRATION_UNDO_REASON");
- histogram.add(migrationBrowser, reason);
},
getBrowserUsedForMigration() {
@@ -367,7 +336,6 @@ const AutoMigrate = {
message, kNotificationId, null, notificationBox.PRIORITY_INFO_HIGH, buttons
);
let remainingDays = Preferences.get(kAutoMigrateDaysToOfferUndoPref, 0);
- Services.telemetry.getHistogramById("FX_STARTUP_MIGRATION_UNDO_OFFERED").add(4 - remainingDays);
}),
shouldStillShowUndoPrompt() {
diff --git a/basilisk/components/migration/FirefoxProfileMigrator.js b/basilisk/components/migration/FirefoxProfileMigrator.js
index 2714cdb..b53f7b5 100644
--- a/basilisk/components/migration/FirefoxProfileMigrator.js
+++ b/basilisk/components/migration/FirefoxProfileMigrator.js
@@ -1,6 +1,5 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
- * vim: sw=2 ts=2 sts=2 et */
- /* This Source Code Form is subject to the terms of the Mozilla Public
+ * 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/. */
@@ -170,77 +169,8 @@ FirefoxProfileMigrator.prototype._getResourcesInternal = function(sourceProfileD
};
}
- // Telemetry related migrations.
- let times = {
- name: "times", // name is used only by tests.
- type: types.OTHERDATA,
- migrate: aCallback => {
- let file = this._getFileObject(sourceProfileDir, "times.json");
- if (file) {
- file.copyTo(currentProfileDir, "");
- }
- // And record the fact a migration (ie, a reset) happened.
- let timesAccessor = new ProfileAge(currentProfileDir.path);
- timesAccessor.recordProfileReset().then(
- () => aCallback(true),
- () => aCallback(false)
- );
- }
- };
- let telemetry = {
- name: "telemetry", // name is used only by tests...
- type: types.OTHERDATA,
- migrate: aCallback => {
- let createSubDir = (name) => {
- let dir = currentProfileDir.clone();
- dir.append(name);
- dir.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
- return dir;
- };
-
- // If the 'datareporting' directory exists we migrate files from it.
- let haveStateFile = false;
- let dataReportingDir = this._getFileObject(sourceProfileDir, "datareporting");
- if (dataReportingDir && dataReportingDir.isDirectory()) {
- // Copy only specific files.
- let toCopy = ["state.json", "session-state.json"];
-
- let dest = createSubDir("datareporting");
- let enumerator = dataReportingDir.directoryEntries;
- while (enumerator.hasMoreElements()) {
- let file = enumerator.getNext().QueryInterface(Ci.nsIFile);
- if (file.isDirectory() || toCopy.indexOf(file.leafName) == -1) {
- continue;
- }
-
- if (file.leafName == "state.json") {
- haveStateFile = true;
- }
- file.copyTo(dest, "");
- }
- }
-
- if (!haveStateFile) {
- // Fall back to migrating the state file that contains the client id from healthreport/.
- // We first moved the client id management from the FHR implementation to the datareporting
- // service.
- // Consequently, we try to migrate an existing FHR state file here as a fallback.
- let healthReportDir = this._getFileObject(sourceProfileDir, "healthreport");
- if (healthReportDir && healthReportDir.isDirectory()) {
- let stateFile = this._getFileObject(healthReportDir, "state.json");
- if (stateFile) {
- let dest = createSubDir("healthreport");
- stateFile.copyTo(dest, "");
- }
- }
- }
-
- aCallback(true);
- }
- };
-
return [places, cookies, passwords, formData, dictionary, bookmarksBackups,
- session, times, telemetry].filter(r => r);
+ session].filter(r => r);
};
Object.defineProperty(FirefoxProfileMigrator.prototype, "startupOnlyMigrator", {
diff --git a/basilisk/components/migration/MigrationUtils.jsm b/basilisk/components/migration/MigrationUtils.jsm
index 9425cce..2bb7787 100644
--- a/basilisk/components/migration/MigrationUtils.jsm
+++ b/basilisk/components/migration/MigrationUtils.jsm
@@ -265,27 +265,6 @@ this.MigratorPrototype = {
let maybeFinishResponsivenessMonitor = (responsivenessMonitor, histogramId) => {
if (responsivenessMonitor) {
let accumulatedDelay = responsivenessMonitor.finish();
- if (histogramId) {
- try {
- Services.telemetry.getKeyedHistogramById(histogramId)
- .add(browserKey, accumulatedDelay);
- } catch (ex) {
- Cu.reportError(histogramId + ": " + ex);
- }
- }
- }
- };
-
- let collectQuantityTelemetry = () => {
- for (let resourceType of Object.keys(MigrationUtils._importQuantities)) {
- let histogramId =
- "FX_MIGRATION_" + resourceType.toUpperCase() + "_QUANTITY";
- try {
- Services.telemetry.getKeyedHistogramById(histogramId)
- .add(browserKey, MigrationUtils._importQuantities[resourceType]);
- } catch (ex) {
- Cu.reportError(histogramId + ": " + ex);
- }
}
};
@@ -331,7 +310,6 @@ this.MigratorPrototype = {
maybeFinishResponsivenessMonitor(responsivenessMonitor, responsivenessHistogramId);
if (resourcesGroupedByItems.size == 0) {
- collectQuantityTelemetry();
notify("Migration:Ended");
}
}
@@ -803,7 +781,6 @@ this.MigrationUtils = Object.freeze({
* - {String} an identifier for the profile to use when migrating
* NB: If you add new consumers, please add a migration entry point
* constant below, and specify at least the first element of the array
- * (the migration entry point for purposes of telemetry).
*/
showMigrationWizard:
function MU_showMigrationWizard(aOpener, aParams) {
@@ -1096,7 +1073,4 @@ this.MigrationUtils = Object.freeze({
"safari": 8,
"360se": 9,
},
- getSourceIdForTelemetry(sourceName) {
- return this._sourceNameToIdMapping[sourceName] || 0;
- },
});
diff --git a/basilisk/components/migration/content/migration.js b/basilisk/components/migration/content/migration.js
index eb21756..8ca60a3 100644
--- a/basilisk/components/migration/content/migration.js
+++ b/basilisk/components/migration/content/migration.js
@@ -35,7 +35,6 @@ var MigrationWizard = { /* exported MigrationWizard */
let args = window.arguments;
let entryPointId = args[0] || MigrationUtils.MIGRATION_ENTRYPOINT_UNKNOWN;
- Services.telemetry.getHistogramById("FX_MIGRATION_ENTRY_POINT").add(entryPointId);
this.isInitialMigration = entryPointId == MigrationUtils.MIGRATION_ENTRYPOINT_FIRSTRUN;
if (args.length > 1) {
@@ -105,15 +104,6 @@ var MigrationWizard = { /* exported MigrationWizard */
}
}
}
- if (this.isInitialMigration) {
- Services.telemetry.getHistogramById("FX_STARTUP_MIGRATION_BROWSER_COUNT")
- .add(this._availableMigrators.length);
- let defaultBrowser = MigrationUtils.getMigratorKeyForDefaultBrowser();
- // This will record 0 for unknown default browser IDs.
- defaultBrowser = MigrationUtils.getSourceIdForTelemetry(defaultBrowser);
- Services.telemetry.getHistogramById("FX_STARTUP_MIGRATION_EXISTING_DEFAULT_BROWSER")
- .add(defaultBrowser);
- }
group.addEventListener("command", toggleCloseBrowserWarning);
@@ -142,11 +132,6 @@ var MigrationWizard = { /* exported MigrationWizard */
var newSource = document.getElementById("importSourceGroup").selectedItem.id;
if (newSource == "nothing") {
- // Need to do telemetry here because we're closing the dialog before we get to
- // do actual migration. For actual migration, this doesn't happen until after
- // migration takes place.
- Services.telemetry.getHistogramById("FX_MIGRATION_SOURCE_BROWSER")
- .add(MigrationUtils.getSourceIdForTelemetry("nothing"));
document.documentElement.cancel();
return false;
}
@@ -366,21 +351,6 @@ var MigrationWizard = { /* exported MigrationWizard */
onMigratingMigrate: function ()
{
this._migrator.migrate(this._itemsFlags, this._autoMigrate, this._selectedProfile);
-
- Services.telemetry.getHistogramById("FX_MIGRATION_SOURCE_BROWSER")
- .add(MigrationUtils.getSourceIdForTelemetry(this._source));
- if (!this._autoMigrate) {
- let hist = Services.telemetry.getKeyedHistogramById("FX_MIGRATION_USAGE");
- let exp = 0;
- let items = this._itemsFlags;
- while (items) {
- if (items & 1) {
- hist.add(this._source, exp);
- }
- items = items >> 1;
- exp++;
- }
- }
},
_listItems: function (aID)
@@ -426,18 +396,8 @@ var MigrationWizard = { /* exported MigrationWizard */
label.removeAttribute("style");
break;
case "Migration:Ended":
- if (this.isInitialMigration) {
- // Ensure errors in reporting data recency do not affect the rest of the migration.
- try {
- this.reportDataRecencyTelemetry();
- } catch (ex) {
- Cu.reportError(ex);
- }
- }
if (this._autoMigrate) {
let hasImportedHomepage = !!(this._newHomePage && this._newHomePage != "DEFAULT");
- Services.telemetry.getKeyedHistogramById("FX_MIGRATION_IMPORTED_HOMEPAGE")
- .add(this._source, hasImportedHomepage);
if (this._newHomePage) {
try {
// set homepage properly
@@ -508,8 +468,6 @@ var MigrationWizard = { /* exported MigrationWizard */
Cc["@mozilla.org/consoleservice;1"]
.getService(Ci.nsIConsoleService)
.logStringMessage("some " + type + " did not successfully migrate.");
- Services.telemetry.getKeyedHistogramById("FX_MIGRATION_ERRORS")
- .add(this._source, Math.log2(numericType));
break;
}
},
@@ -521,29 +479,4 @@ var MigrationWizard = { /* exported MigrationWizard */
this._listItems("doneItems");
},
- reportDataRecencyTelemetry() {
- let histogram = Services.telemetry.getKeyedHistogramById("FX_STARTUP_MIGRATION_DATA_RECENCY");
- let lastUsedPromises = [];
- for (let [key, migrator] of this._availableMigrators) {
- // No block-scoped let in for...of loop conditions, so get the source:
- let localKey = key;
- lastUsedPromises.push(migrator.getLastUsedDate().then(date => {
- const ONE_YEAR = 24 * 365;
- let diffInHours = Math.round((Date.now() - date) / (60 * 60 * 1000));
- if (diffInHours > ONE_YEAR) {
- diffInHours = ONE_YEAR;
- }
- histogram.add(localKey, diffInHours);
- return [localKey, diffInHours];
- }));
- }
- Promise.all(lastUsedPromises).then(migratorUsedTimeDiff => {
- // Sort low to high.
- migratorUsedTimeDiff.sort(([keyA, diffA], [keyB, diffB]) => diffA - diffB); /* eslint no-unused-vars: off */
- let usedMostRecentBrowser = migratorUsedTimeDiff.length && this._source == migratorUsedTimeDiff[0][0];
- let usedRecentBrowser =
- Services.telemetry.getKeyedHistogramById("FX_STARTUP_MIGRATION_USED_RECENT_BROWSER");
- usedRecentBrowser.add(this._source, usedMostRecentBrowser);
- });
- },
};
diff --git a/basilisk/components/nsBrowserContentHandler.js b/basilisk/components/nsBrowserContentHandler.js
index 841d7a4..97c9c28 100644
--- a/basilisk/components/nsBrowserContentHandler.js
+++ b/basilisk/components/nsBrowserContentHandler.js
@@ -236,9 +236,6 @@ function openPreferences() {
}
function logSystemBasedSearch(engine) {
- var countId = (engine.identifier || ("other-" + engine.name)) + ".system";
- var count = Services.telemetry.getKeyedHistogramById("SEARCH_COUNTS");
- count.add(countId);
}
function doSearch(searchTerm, cmdLine) {
@@ -688,18 +685,6 @@ nsDefaultCommandLineHandler.prototype = {
/* nsICommandLineHandler */
handle : function(cmdLine) {
- // The -url flag is inserted by the operating system when the default
- // application handler is used. We check for default browser to remove
- // instances where users explicitly decide to "open with" the browser.
- // Note that users who launch firefox manually with the -url flag will
- // get erroneously counted.
- try {
- if (cmdLine.findFlag("url", false) &&
- ShellService.isDefaultBrowser(false, false)) {
- Services.telemetry.getHistogramById("FX_STARTUP_EXTERNAL_CONTENT_HANDLER").add();
- }
- } catch (e) {}
-
var urilist = [];
if (AppConstants.platform == "win") {
diff --git a/basilisk/components/nsBrowserGlue.js b/basilisk/components/nsBrowserGlue.js
index 7446d11..2b2daeb 100644
--- a/basilisk/components/nsBrowserGlue.js
+++ b/basilisk/components/nsBrowserGlue.js
@@ -27,7 +27,6 @@ XPCOMUtils.defineLazyServiceGetter(this, "AlertsService", "@mozilla.org/alerts-s
["AutoCompletePopup", "resource://gre/modules/AutoCompletePopup.jsm"],
["BookmarkHTMLUtils", "resource://gre/modules/BookmarkHTMLUtils.jsm"],
["BookmarkJSONUtils", "resource://gre/modules/BookmarkJSONUtils.jsm"],
- ["BrowserUsageTelemetry", "resource:///modules/BrowserUsageTelemetry.jsm"],
["ContentClick", "resource:///modules/ContentClick.jsm"],
["ContentPrefServiceParent", "resource://gre/modules/ContentPrefServiceParent.jsm"],
["ContentSearch", "resource:///modules/ContentSearch.jsm"],
@@ -308,8 +307,6 @@ BrowserGlue.prototype = {
} catch (ex) {
Cu.reportError(ex);
}
- let win = RecentWindow.getMostRecentBrowserWindow();
- win.BrowserSearch.recordSearchInTelemetry(engine, "urlbar");
break;
case "browser-search-engine-modified":
// Ensure we cleanup the hiddenOneOffs pref when removing
@@ -340,7 +337,6 @@ BrowserGlue.prototype = {
});
break;
case "autocomplete-did-enter-text":
- this._handleURLBarTelemetry(subject.QueryInterface(Ci.nsIAutoCompleteInput));
break;
case "test-initialize-sanitizer":
this._sanitizer.onStartup();
@@ -351,64 +347,6 @@ BrowserGlue.prototype = {
}
},
- _handleURLBarTelemetry(input) {
- if (!input ||
- input.id != "urlbar" ||
- input.inPrivateContext ||
- input.popup.selectedIndex < 0) {
- return;
- }
- let controller =
- input.popup.view.QueryInterface(Ci.nsIAutoCompleteController);
- let idx = input.popup.selectedIndex;
- let value = controller.getValueAt(idx);
- let action = input._parseActionUrl(value);
- let actionType;
- if (action) {
- actionType =
- action.type == "searchengine" && action.params.searchSuggestion ?
- "searchsuggestion" :
- action.type;
- }
- if (!actionType) {
- let styles = new Set(controller.getStyleAt(idx).split(/\s+/));
- let style = ["autofill", "tag", "bookmark"].find(s => styles.has(s));
- actionType = style || "history";
- }
-
- Services.telemetry
- .getHistogramById("FX_URLBAR_SELECTED_RESULT_INDEX")
- .add(idx);
-
- // Ideally this would be a keyed histogram and we'd just add(actionType),
- // but keyed histograms aren't currently shown on the telemetry dashboard
- // (bug 1151756).
- //
- // You can add values but don't change any of the existing values.
- // Otherwise you'll break our data.
- let buckets = {
- autofill: 0,
- bookmark: 1,
- history: 2,
- keyword: 3,
- searchengine: 4,
- searchsuggestion: 5,
- switchtab: 6,
- tag: 7,
- visiturl: 8,
- remotetab: 9,
- extension: 10,
- };
- if (actionType in buckets) {
- Services.telemetry
- .getHistogramById("FX_URLBAR_SELECTED_RESULT_TYPE")
- .add(buckets[actionType]);
- } else {
- Cu.reportError("Unknown FX_URLBAR_SELECTED_RESULT_TYPE type: " +
- actionType);
- }
- },
-
// initialization (called on application startup)
_init: function() {
let os = Services.obs;
@@ -436,9 +374,6 @@ BrowserGlue.prototype = {
os.addObserver(this, "distribution-customization-complete", false);
os.addObserver(this, "handle-xul-text-link", false);
os.addObserver(this, "profile-before-change", false);
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- os.addObserver(this, "keyword-search", false);
- }
os.addObserver(this, "browser-search-engine-modified", false);
os.addObserver(this, "restart-in-safe-mode", false);
os.addObserver(this, "flash-plugin-hang", false);
@@ -490,9 +425,6 @@ BrowserGlue.prototype = {
os.removeObserver(this, "places-database-locked");
os.removeObserver(this, "handle-xul-text-link");
os.removeObserver(this, "profile-before-change");
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- os.removeObserver(this, "keyword-search");
- }
os.removeObserver(this, "browser-search-engine-modified");
os.removeObserver(this, "flash-plugin-hang");
os.removeObserver(this, "xpi-signature-changed");
@@ -531,10 +463,6 @@ BrowserGlue.prototype = {
const STATE_USER_PICKED_IGNORE_FOREVER = 3;
const STATE_USER_CLOSED_NOTIFICATION = 4;
- let update = function(response) {
- Services.telemetry.getHistogramById("SLOW_ADDON_WARNING_STATES").add(response);
- }
-
let complete = false;
let start = Date.now();
let done = function(response) {
@@ -543,12 +471,8 @@ BrowserGlue.prototype = {
return;
}
complete = true;
- update(response);
- Services.telemetry.getHistogramById("SLOW_ADDON_WARNING_RESPONSE_TIME").add(Date.now() - start);
};
- update(STATE_WARNING_DISPLAYED);
-
if (notification) {
notification.label = message;
} else {
@@ -659,7 +583,6 @@ BrowserGlue.prototype = {
NewTabMessages.init();
SessionStore.init();
- BrowserUsageTelemetry.init();
ContentSearch.init();
FormValidationHandler.init();
@@ -874,27 +797,6 @@ BrowserGlue.prototype = {
nb.PRIORITY_WARNING_MEDIUM, buttons);
},
- _firstWindowTelemetry: function(aWindow) {
- let SCALING_PROBE_NAME = "";
- switch (AppConstants.platform) {
- case "win":
- SCALING_PROBE_NAME = "DISPLAY_SCALING_MSWIN";
- break;
- case "macosx":
- SCALING_PROBE_NAME = "DISPLAY_SCALING_OSX";
- break;
- case "linux":
- SCALING_PROBE_NAME = "DISPLAY_SCALING_LINUX";
- break;
- }
- if (SCALING_PROBE_NAME) {
- let scaling = aWindow.devicePixelRatio * 100;
- try {
- Services.telemetry.getHistogramById(SCALING_PROBE_NAME).add(scaling);
- } catch (ex) {}
- }
- },
-
// the first browser window has finished initializing
_onFirstWindowLoaded: function(aWindow) {
// Initialize PdfJs when running in-process and remote. This only
@@ -975,7 +877,6 @@ BrowserGlue.prototype = {
AutoCompletePopup.init();
DateTimePickerHelper.init();
- this._firstWindowTelemetry(aWindow);
this._firstWindowLoaded();
},
@@ -1002,7 +903,6 @@ BrowserGlue.prototype = {
delete this._bookmarksBackupIdleTime;
}
- BrowserUsageTelemetry.uninit();
UserAgentOverrides.uninit();
PageThumbs.uninit();
NewTabMessages.uninit();
@@ -1122,20 +1022,6 @@ BrowserGlue.prototype = {
Services.prefs.setIntPref("browser.shell.defaultBrowserCheckCount", promptCount);
}
- try {
- // Report default browser status on startup to telemetry
- // so we can track whether we are the default.
- Services.telemetry.getHistogramById("BROWSER_IS_USER_DEFAULT")
- .add(isDefault);
- Services.telemetry.getHistogramById("BROWSER_IS_USER_DEFAULT_ERROR")
- .add(isDefaultError);
- Services.telemetry.getHistogramById("BROWSER_SET_DEFAULT_ALWAYS_CHECK")
- .add(shouldCheck);
- Services.telemetry.getHistogramById("BROWSER_SET_DEFAULT_DIALOG_PROMPT_RAWCOUNT")
- .add(promptCount);
- }
- catch (ex) { /* Don't break the default prompt if telemetry is broken. */ }
-
if (willPrompt) {
Services.tm.mainThread.dispatch(function() {
DefaultBrowserCheck.prompt(RecentWindow.getMostRecentBrowserWindow());
@@ -1552,14 +1438,6 @@ BrowserGlue.prototype = {
// available backup compared to that session.
if (profileLastUse > lastBackupTime) {
let backupAge = Math.round((profileLastUse - lastBackupTime) / 86400000);
- // Report the age of the last available backup.
- try {
- Services.telemetry
- .getHistogramById("PLACES_BACKUPS_DAYSFROMLAST")
- .add(backupAge);
- } catch (ex) {
- Cu.reportError(new Error("Unable to report telemetry."));
- }
if (backupAge > BOOKMARKS_BACKUP_MAX_INTERVAL_DAYS)
this._bookmarksBackupIdleTime /= 2;
@@ -2408,24 +2286,12 @@ var DefaultBrowserCheck = {
if (isDefault || runTime > 600) {
this._setAsDefaultTimer.cancel();
this._setAsDefaultTimer = null;
- Services.telemetry.getHistogramById("BROWSER_SET_DEFAULT_TIME_TO_COMPLETION_SECONDS")
- .add(runTime);
}
- Services.telemetry.getHistogramById("BROWSER_IS_USER_DEFAULT_ERROR")
- .add(isDefaultError);
}, 1000, Ci.nsITimer.TYPE_REPEATING_SLACK);
} catch (ex) {
setAsDefaultError = true;
Cu.reportError(ex);
}
- // Here BROWSER_IS_USER_DEFAULT and BROWSER_SET_USER_DEFAULT_ERROR appear
- // to be inverse of each other, but that is only because this function is
- // called when the browser is set as the default. During startup we record
- // the BROWSER_IS_USER_DEFAULT value without recording BROWSER_SET_USER_DEFAULT_ERROR.
- Services.telemetry.getHistogramById("BROWSER_IS_USER_DEFAULT")
- .add(!setAsDefaultError);
- Services.telemetry.getHistogramById("BROWSER_SET_DEFAULT_ERROR")
- .add(setAsDefaultError);
},
_createPopup: function(win, notNowStrings, neverStrings) {
@@ -2537,12 +2403,6 @@ var DefaultBrowserCheck = {
} else if (!shouldAsk.value) {
ShellService.shouldCheckDefaultBrowser = false;
}
-
- try {
- let resultEnum = rv * 2 + shouldAsk.value;
- Services.telemetry.getHistogramById("BROWSER_SET_DEFAULT_RESULT")
- .add(resultEnum);
- } catch (ex) { /* Don't break if Telemetry is acting up. */ }
}
},
diff --git a/basilisk/components/places/content/browserPlacesViews.js b/basilisk/components/places/content/browserPlacesViews.js
index 2d1a9a2..f8a03c8 100644
--- a/basilisk/components/places/content/browserPlacesViews.js
+++ b/basilisk/components/places/content/browserPlacesViews.js
@@ -980,9 +980,6 @@ function PlacesToolbar(aPlace) {
}
PlacesViewBase.call(this, aPlace);
-
- Services.telemetry.getHistogramById("FX_BOOKMARKS_TOOLBAR_INIT_MS")
- .add(Date.now() - startTime);
}
PlacesToolbar.prototype = {
diff --git a/basilisk/components/places/content/places.js b/basilisk/components/places/content/places.js
index 30b4b7b..b04aea3 100644
--- a/basilisk/components/places/content/places.js
+++ b/basilisk/components/places/content/places.js
@@ -17,7 +17,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "DownloadUtils",
"resource://gre/modules/DownloadUtils.jsm");
const RESTORE_FILEPICKER_FILTER_EXT = "*.json;*.jsonlz4";
-const HISTORY_LIBRARY_SEARCH_TELEMETRY = "PLACES_HISTORY_LIBRARY_SEARCH_TIME_MS";
var PlacesOrganizer = {
_places: null,
@@ -360,7 +359,6 @@ var PlacesOrganizer = {
* cookies, history, preferences, and bookmarks.
*/
importFromBrowser: function() {
- // We pass in the type of source we're using for use in telemetry:
MigrationUtils.showMigrationWizard(window, [MigrationUtils.MIGRATION_ENTRYPOINT_PLACES]);
},
diff --git a/basilisk/components/preferences/in-content/advanced.js b/basilisk/components/preferences/in-content/advanced.js
index 5a94cb3..176dbdd 100644
--- a/basilisk/components/preferences/in-content/advanced.js
+++ b/basilisk/components/preferences/in-content/advanced.js
@@ -40,10 +40,6 @@ var gAdvancedPane = {
this.updateReadPrefs();
}
this.updateOfflineApps();
- this.initTelemetry();
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- this.initSubmitHealthReport();
- }
this.updateOnScreenKeyboardVisibility();
this.updateCacheSizeInputField();
this.updateActualCacheSize();
@@ -53,10 +49,6 @@ var gAdvancedPane = {
gAdvancedPane.updateHardwareAcceleration);
setEventListener("advancedPrefs", "select",
gAdvancedPane.tabSelectionChanged);
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- setEventListener("submitHealthReportBox", "command",
- gAdvancedPane.updateSubmitHealthReport);
- }
setEventListener("connectionSettings", "command",
gAdvancedPane.showConnections);
@@ -107,15 +99,6 @@ var gAdvancedPane = {
var advancedPrefs = document.getElementById("advancedPrefs");
var preference = document.getElementById("browser.preferences.advanced.selectedTabIndex");
- // tabSelectionChanged gets called twice due to the selectedIndex being set
- // by both the selectedItem and selectedPanel callstacks. This guard is used
- // to prevent double-counting in Telemetry.
- if (preference.valueFromPreferences != advancedPrefs.selectedIndex) {
- Services.telemetry
- .getHistogramById("FX_PREFERENCES_CATEGORY_OPENED")
- .add(telemetryBucketForCategory("advanced"));
- }
-
preference.valueFromPreferences = advancedPrefs.selectedIndex;
},
@@ -249,64 +232,16 @@ var gAdvancedPane = {
"crashReporterLearnMore");
},
- /**
- * The preference/checkbox is configured in XUL.
- *
- * In all cases, set up the Learn More link sanely.
- */
- initTelemetry: function ()
- {
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- this._setupLearnMoreLink("toolkit.telemetry.infoURL", "telemetryLearnMore");
- }
- },
-
- /**
- * Set the status of the telemetry controls based on the input argument.
- * @param {Boolean} aEnabled False disables the controls, true enables them.
- */
- setTelemetrySectionEnabled: function (aEnabled)
- {
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- // If FHR is disabled, additional data sharing should be disabled as well.
- let disabled = !aEnabled;
- document.getElementById("submitTelemetryBox").disabled = disabled;
- if (disabled) {
- // If we disable FHR, untick the telemetry checkbox.
- Services.prefs.setBoolPref("toolkit.telemetry.enabled", false);
- }
- document.getElementById("telemetryDataDesc").disabled = disabled;
- }
- },
-
/**
* Initialize the health report service reference and checkbox.
*/
initSubmitHealthReport: function () {
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- this._setupLearnMoreLink("datareporting.healthreport.infoURL", "FHRLearnMore");
-
- let checkbox = document.getElementById("submitHealthReportBox");
-
- if (Services.prefs.prefIsLocked(PREF_UPLOAD_ENABLED)) {
- checkbox.setAttribute("disabled", "true");
- return;
- }
-
- checkbox.checked = Services.prefs.getBoolPref(PREF_UPLOAD_ENABLED);
- this.setTelemetrySectionEnabled(checkbox.checked);
- }
},
/**
* Update the health report preference with state from checkbox.
*/
updateSubmitHealthReport: function () {
- if (AppConstants.MOZ_TELEMETRY_REPORTING) {
- let checkbox = document.getElementById("submitHealthReportBox");
- Services.prefs.setBoolPref(PREF_UPLOAD_ENABLED, checkbox.checked);
- this.setTelemetrySectionEnabled(checkbox.checked);
- }
},
updateOnScreenKeyboardVisibility() {
diff --git a/basilisk/components/preferences/in-content/advanced.xul b/basilisk/components/preferences/in-content/advanced.xul
index d5498e7..8957211 100644
--- a/basilisk/components/preferences/in-content/advanced.xul
+++ b/basilisk/components/preferences/in-content/advanced.xul
@@ -47,12 +47,6 @@
name="layout.spellcheckDefault"
type="int"/>
-#ifdef MOZ_TELEMETRY_REPORTING
-
-#endif
-
-#ifdef MOZ_DATA_REPORTING
-
-
-#ifdef MOZ_TELEMETRY_REPORTING
-
-