diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2018-05-24 16:29:56 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2018-05-24 16:29:56 -0400 |
commit | 3a9d1b5351f275ae49a93ea36934c4a8a65ad93b (patch) | |
tree | 2ce91010e0e8b1f32963e57e55a40eb3fa9f7b4a /browser/base/content/content.js | |
parent | b565e2c227af2cbcbc3573c1f874fd9e809bd5fe (diff) | |
download | UXP-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/base/content/content.js')
-rw-r--r-- | browser/base/content/content.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/browser/base/content/content.js b/browser/base/content/content.js index 496e0d111..5758cb023 100644 --- a/browser/base/content/content.js +++ b/browser/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"); |