Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <html>
2 <head>
3 <script type="text/javascript">
4 var theme = {
5 id: "test",
6 name: "Test Background",
7 headerURL: "http://example.com/firefox/personas/01/header.jpg",
8 footerURL: "http://example.com/firefox/personas/01/footer.jpg",
9 textcolor: "#fff",
10 accentcolor: "#6b6b6b"
11 };
13 function setTheme(node) {
14 node.setAttribute("data-browsertheme", JSON.stringify(theme));
15 var event = document.createEvent("Events");
16 event.initEvent("InstallBrowserTheme", true, false);
17 node.dispatchEvent(event);
18 }
19 </script>
20 </head>
21 <body>
22 <a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
23 </body>
24 </html>