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