From 3a9d1b5351f275ae49a93ea36934c4a8a65ad93b Mon Sep 17 00:00:00 2001
From: Ascrod <32915892+Ascrod@users.noreply.github.com>
Date: Thu, 24 May 2018 16:29:56 -0400
Subject: Remove the Social API
---
browser/app/profile/firefox.js | 7 -
browser/base/content/aboutProviderDirectory.xhtml | 60 --
browser/base/content/aboutSocialError.xhtml | 111 --
browser/base/content/browser-context.inc | 20 -
browser/base/content/browser-sets.inc | 3 -
browser/base/content/browser-social.js | 503 ---------
browser/base/content/browser.css | 5 -
browser/base/content/browser.js | 10 +-
browser/base/content/browser.xul | 26 -
browser/base/content/content.js | 31 -
browser/base/content/nsContextMenu.js | 47 +-
browser/base/content/social-content.js | 172 ---
browser/base/jar.mn | 4 -
browser/components/about/AboutRedirector.cpp | 10 -
browser/components/build/nsModule.cpp | 2 -
.../customizableui/CustomizableWidgets.jsm | 41 -
.../customizableui/content/panelUI.inc.xul | 2 -
browser/docs/UITelemetry.rst | 1 -
browser/locales/en-US/chrome/browser/browser.dtd | 25 +-
.../en-US/chrome/browser/browser.properties | 23 -
.../customizableui/customizableWidgets.properties | 3 -
browser/modules/BrowserUITelemetry.jsm | 10 +-
browser/modules/Social.jsm | 272 -----
browser/modules/SocialService.jsm | 1097 --------------------
browser/modules/moz.build | 2 -
browser/themes/linux/browser.css | 50 -
browser/themes/linux/customizableui/panelUI.css | 8 -
browser/themes/linux/jar.mn | 4 -
browser/themes/osx/browser.css | 88 --
browser/themes/osx/jar.mn | 4 -
browser/themes/shared/aboutProviderDirectory.css | 30 -
browser/themes/shared/browser.inc | 2 +-
.../themes/shared/customizableui/panelUI.inc.css | 4 -
browser/themes/shared/jar.inc.mn | 5 -
browser/themes/shared/menuPanel-small.svg | 16 -
browser/themes/shared/menupanel.inc.css | 10 -
browser/themes/shared/notification-icons.inc.css | 22 -
browser/themes/shared/social/gear_clicked.png | Bin 1262 -> 0 bytes
browser/themes/shared/social/gear_default.png | Bin 1271 -> 0 bytes
browser/themes/shared/social/social.inc.css | 23 -
browser/themes/shared/toolbarbuttons.inc.css | 8 -
browser/themes/windows/browser.css | 75 --
browser/themes/windows/customizableui/panelUI.css | 8 -
browser/themes/windows/jar.mn | 2 -
devtools/client/responsive.html/browser/tunnel.js | 4 -
modules/libpref/init/all.js | 12 -
testing/mochitest/browser-test.js | 1 -
toolkit/components/telemetry/Histograms.json | 29 -
.../components/telemetry/histogram-whitelists.json | 10 -
toolkit/modules/Troubleshoot.jsm | 1 -
50 files changed, 16 insertions(+), 2887 deletions(-)
delete mode 100644 browser/base/content/aboutProviderDirectory.xhtml
delete mode 100644 browser/base/content/aboutSocialError.xhtml
delete mode 100644 browser/base/content/browser-social.js
delete mode 100644 browser/base/content/social-content.js
delete mode 100644 browser/modules/Social.jsm
delete mode 100644 browser/modules/SocialService.jsm
delete mode 100644 browser/themes/shared/aboutProviderDirectory.css
delete mode 100644 browser/themes/shared/menuPanel-small.svg
delete mode 100644 browser/themes/shared/social/gear_clicked.png
delete mode 100644 browser/themes/shared/social/gear_default.png
delete mode 100644 browser/themes/shared/social/social.inc.css
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
index e432c511db..ede62fd5e1 100644
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1118,13 +1118,6 @@ pref("pdfjs.previousHandler.alwaysAskBeforeHandling", false);
// (This is intentionally on the high side; see bug 746055.)
pref("image.mem.max_decoded_image_kb", 256000);
-pref("social.sidebar.unload_timeout_ms", 10000);
-
-// Activation from inside of share panel is possible if activationPanelEnabled
-// is true. Pref'd off for release while usage testing is done through beta.
-pref("social.share.activationPanelEnabled", true);
-pref("social.shareDirectory", "https://activations.cdn.mozilla.net/sharePanel.html");
-
// Block insecure active content on https pages
pref("security.mixed_content.block_active_content", true);
diff --git a/browser/base/content/aboutProviderDirectory.xhtml b/browser/base/content/aboutProviderDirectory.xhtml
deleted file mode 100644
index 596ede4b30..0000000000
--- a/browser/base/content/aboutProviderDirectory.xhtml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
- %htmlDTD;
-
- %brandDTD;
-
- %browserDTD;
-]>
-
-
-
- &social.directory.label;
-
-
-
-
-
-
-
&social.directory.text;
-
-
-
-
-
-
-
-
-
-
diff --git a/browser/base/content/aboutSocialError.xhtml b/browser/base/content/aboutSocialError.xhtml
deleted file mode 100644
index 94a4e3dbd9..0000000000
--- a/browser/base/content/aboutSocialError.xhtml
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
-
- %htmlDTD;
-
- %netErrorDTD;
-]>
-
-
-
- &loadError.label;
-
-
-
-
-
-
-
-
-
-
-
diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc
index 3061cccdd1..9fa90b11c6 100644
--- a/browser/base/content/browser-context.inc
+++ b/browser/base/content/browser-context.inc
@@ -85,10 +85,6 @@
label="&bookmarkThisLinkCmd.label;"
accesskey="&bookmarkThisLinkCmd.accesskey;"
oncommand="gContextMenu.bookmarkLink();"/>
-
-
-
-
-