From 72bab89cf6c77c9ee95a977c306e6ce317b84835 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 25 May 2018 20:45:48 +0000 Subject: Revert "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 0 -> 1262 bytes browser/themes/shared/social/gear_default.png | Bin 0 -> 1271 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 + mobile/android/moz.configure | 1 + modules/libpref/init/all.js | 12 + old-configure.in | 7 + testing/mochitest/browser-test.js | 1 + toolkit/components/telemetry/Histograms.json | 29 + .../components/telemetry/histogram-whitelists.json | 10 + toolkit/modules/Troubleshoot.jsm | 1 + 52 files changed, 2895 insertions(+), 16 deletions(-) create mode 100644 browser/base/content/aboutProviderDirectory.xhtml create mode 100644 browser/base/content/aboutSocialError.xhtml create mode 100644 browser/base/content/browser-social.js create mode 100644 browser/base/content/social-content.js create mode 100644 browser/modules/Social.jsm create mode 100644 browser/modules/SocialService.jsm create mode 100644 browser/themes/shared/aboutProviderDirectory.css create mode 100644 browser/themes/shared/menuPanel-small.svg create mode 100644 browser/themes/shared/social/gear_clicked.png create mode 100644 browser/themes/shared/social/gear_default.png create mode 100644 browser/themes/shared/social/social.inc.css diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index ede62fd5e..e432c511d 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1118,6 +1118,13 @@ 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 new file mode 100644 index 000000000..596ede4b3 --- /dev/null +++ b/browser/base/content/aboutProviderDirectory.xhtml @@ -0,0 +1,60 @@ + + + + + + %htmlDTD; + + %brandDTD; + + %browserDTD; +]> + + + + &social.directory.label; + + + + + +