summaryrefslogtreecommitdiffstats
path: root/browser/components/customizableui/CustomizableWidgets.jsm
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2018-05-24 16:29:56 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2018-05-24 16:29:56 -0400
commit3a9d1b5351f275ae49a93ea36934c4a8a65ad93b (patch)
tree2ce91010e0e8b1f32963e57e55a40eb3fa9f7b4a /browser/components/customizableui/CustomizableWidgets.jsm
parentb565e2c227af2cbcbc3573c1f874fd9e809bd5fe (diff)
downloadUXP-3a9d1b5351f275ae49a93ea36934c4a8a65ad93b.tar
UXP-3a9d1b5351f275ae49a93ea36934c4a8a65ad93b.tar.gz
UXP-3a9d1b5351f275ae49a93ea36934c4a8a65ad93b.tar.lz
UXP-3a9d1b5351f275ae49a93ea36934c4a8a65ad93b.tar.xz
UXP-3a9d1b5351f275ae49a93ea36934c4a8a65ad93b.zip
Remove the Social API
Diffstat (limited to 'browser/components/customizableui/CustomizableWidgets.jsm')
-rw-r--r--browser/components/customizableui/CustomizableWidgets.jsm41
1 files changed, 0 insertions, 41 deletions
diff --git a/browser/components/customizableui/CustomizableWidgets.jsm b/browser/components/customizableui/CustomizableWidgets.jsm
index 3e83b081c..3e00d385f 100644
--- a/browser/components/customizableui/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/CustomizableWidgets.jsm
@@ -557,47 +557,6 @@ const CustomizableWidgets = [
fillSubviewFromMenuItems([...menu.children], sidebarItems);
}
}, {
- id: "social-share-button",
- // custom build our button so we can attach to the share command
- type: "custom",
- onBuild: function(aDocument) {
- let node = aDocument.createElementNS(kNSXUL, "toolbarbutton");
- node.setAttribute("id", this.id);
- node.classList.add("toolbarbutton-1");
- node.classList.add("chromeclass-toolbar-additional");
- node.setAttribute("label", CustomizableUI.getLocalizedProperty(this, "label"));
- node.setAttribute("tooltiptext", CustomizableUI.getLocalizedProperty(this, "tooltiptext"));
- node.setAttribute("removable", "true");
- node.setAttribute("observes", "Social:PageShareable");
- node.setAttribute("command", "Social:SharePage");
-
- let listener = {
- onWidgetAdded: (aWidgetId) => {
- if (aWidgetId != this.id)
- return;
-
- Services.obs.notifyObservers(null, "social:" + this.id + "-added", null);
- },
-
- onWidgetRemoved: aWidgetId => {
- if (aWidgetId != this.id)
- return;
-
- Services.obs.notifyObservers(null, "social:" + this.id + "-removed", null);
- },
-
- onWidgetInstanceRemoved: (aWidgetId, aDoc) => {
- if (aWidgetId != this.id || aDoc != aDocument)
- return;
-
- CustomizableUI.removeListener(listener);
- }
- };
- CustomizableUI.addListener(listener);
-
- return node;
- }
- }, {
id: "add-ons-button",
shortcutId: "key_openAddons",
tooltiptext: "add-ons-button.tooltiptext3",