summaryrefslogtreecommitdiff
path: root/base/content/content.js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-05-31 20:25:00 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-05-31 20:25:00 -0400
commitc11e3a4fb54a739cf1fb1bdff78aa47f930ee8de (patch)
tree49f0d130551a2c65c950dc6cc8ed923d5ecd454b /base/content/content.js
parent66380f518545009315cda100de2bb130d10669df (diff)
downloadiceweasel-uxp-c11e3a4fb54a739cf1fb1bdff78aa47f930ee8de.tar.gz
remove social api left overs
Diffstat (limited to 'base/content/content.js')
-rw-r--r--base/content/content.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/base/content/content.js b/base/content/content.js
index 496e0d1..5758cb0 100644
--- a/base/content/content.js
+++ b/base/content/content.js
@@ -698,37 +698,6 @@ var PageMetadataMessenger = {
}
PageMetadataMessenger.init();
-addEventListener("ActivateSocialFeature", function (aEvent) {
- let document = content.document;
- let dwu = content.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils);
- if (!dwu.isHandlingUserInput) {
- Cu.reportError("attempt to activate provider without user input from " + document.nodePrincipal.origin);
- return;
- }
-
- let node = aEvent.target;
- let ownerDocument = node.ownerDocument;
- let data = node.getAttribute("data-service");
- if (data) {
- try {
- data = JSON.parse(data);
- } catch (e) {
- Cu.reportError("Social Service manifest parse error: " + e);
- return;
- }
- } else {
- Cu.reportError("Social Service manifest not available");
- return;
- }
-
- sendAsyncMessage("Social:Activation", {
- url: ownerDocument.location.href,
- origin: ownerDocument.nodePrincipal.origin,
- manifest: data
- });
-}, true, true);
-
addMessageListener("ContextMenu:SaveVideoFrameAsImage", (message) => {
let video = message.objects.target;
let canvas = content.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");