mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<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",
|
|
|
|
// 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);
|
|
}
|
|
|
|
function oldActivate(node) {
|
|
var event = new CustomEvent("ActivateSocialFeature");
|
|
document.dispatchEvent(event);
|
|
}
|
|
</script>
|
|
<body>
|
|
|
|
nothing to see here
|
|
|
|
<button id="activation-old" onclick="oldActivate(this)">Activate The Demo Provider</button>
|
|
<button id="activation" onclick="activate(this)">Activate The Demo Provider</button>
|
|
|
|
</body>
|
|
</html>
|