gecko-dev/browser/base/content/test/general/bug592338.html
Mark Banner 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00

24 lines
550 B
HTML

<html>
<head>
<script type="text/javascript">
var theme = {
id: "test",
name: "Test Background",
headerURL: "http://example.com/firefox/personas/01/header.jpg",
textcolor: "#fff",
accentcolor: "#6b6b6b",
};
function setTheme(node) {
node.setAttribute("data-browsertheme", JSON.stringify(theme));
var event = document.createEvent("Events");
event.initEvent("InstallBrowserTheme", true, false);
node.dispatchEvent(event);
}
</script>
</head>
<body>
<a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
</body>
</html>