Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html>
2 <head>
3 <title>Activation test</title>
4 </head>
5 <script>
6 // icons from http://findicons.com/icon/158311/firefox?id=356182 by ipapun
7 var data = {
8 // currently required
9 "name": "Demo Social Service",
10 "iconURL": "chrome://branding/content/icon16.png",
11 "icon32URL": "chrome://branding/content/favicon32.png",
12 "icon64URL": "chrome://branding/content/icon64.png",
14 // at least one of these must be defined
15 "sidebarURL": "/browser/browser/base/content/test/social/social_sidebar.html",
16 "workerURL": "/browser/browser/base/content/test/social/social_worker.js",
17 "statusURL": "/browser/browser/base/content/test/social/social_panel.html",
18 "postActivationURL": "/browser/browser/base/content/test/social/social_postActivation.html",
20 // should be available for display purposes
21 "description": "A short paragraph about this provider",
22 "author": "Shane Caraveo, Mozilla",
24 // optional
25 "version": 1
26 }
28 function activate(node) {
29 node.setAttribute("data-service", JSON.stringify(data));
30 var event = new CustomEvent("ActivateSocialFeature");
31 node.dispatchEvent(event);
32 }
34 function oldActivate(node) {
35 var event = new CustomEvent("ActivateSocialFeature");
36 document.dispatchEvent(event);
37 }
38 </script>
39 <body>
41 nothing to see here
43 <button id="activation-old" onclick="oldActivate(this)">Activate The Demo Provider</button>
44 <button id="activation" onclick="activate(this)">Activate The Demo Provider</button>
46 </body>
47 </html>