browser/base/content/test/social/social_activate.html
author Shane Caraveo <scaraveo@mozilla.com>
Wed, 05 Nov 2014 17:22:27 -0800
changeset 238559 dac7ee29d0f82ee6d2d69881d3b4cb7a1c604fb9
parent 200376 4fde9c8a24b35741195bc8070b16a7a3415e15ea
child 312909 3ba655f6bc67660a2dcfc4c2a5b3d0d17714f53d
permissions -rw-r--r--
Bug 915547 fix activation in e10s windows, r=markh

<html>
<head>
	<title>Activation test</title>
</head>
<script>
// icons from http://findicons.com/icon/158311/firefox?id=356182 by ipapun
var data = {
  // currently required
  "name": "Demo Social Service",
  "iconURL": "chrome://branding/content/icon16.png",
  "icon32URL": "chrome://branding/content/favicon32.png",
  "icon64URL": "chrome://branding/content/icon64.png",

  // at least one of these must be defined
  "sidebarURL": "/browser/browser/base/content/test/social/social_sidebar.html",
  "workerURL": "/browser/browser/base/content/test/social/social_worker.js",
  "statusURL": "/browser/browser/base/content/test/social/social_panel.html",
  "postActivationURL": "/browser/browser/base/content/test/social/social_postActivation.html",

  // should be available for display purposes
  "description": "A short paragraph about this provider",
  "author": "Shane Caraveo, Mozilla",

  // optional
  "version": 1
}

function activate(node) {
  node.setAttribute("data-service", JSON.stringify(data));
  var event = new CustomEvent("ActivateSocialFeature");
  node.dispatchEvent(event);
}

</script>
<body>

nothing to see here

<button id="activation" onclick="activate(this)">Activate The Demo Provider</button>

</body>
</html>