1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/general/bug592338.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<html> 1.5 +<head> 1.6 +<script type="text/javascript"> 1.7 +var theme = { 1.8 + id: "test", 1.9 + name: "Test Background", 1.10 + headerURL: "http://example.com/firefox/personas/01/header.jpg", 1.11 + footerURL: "http://example.com/firefox/personas/01/footer.jpg", 1.12 + textcolor: "#fff", 1.13 + accentcolor: "#6b6b6b" 1.14 +}; 1.15 + 1.16 +function setTheme(node) { 1.17 + node.setAttribute("data-browsertheme", JSON.stringify(theme)); 1.18 + var event = document.createEvent("Events"); 1.19 + event.initEvent("InstallBrowserTheme", true, false); 1.20 + node.dispatchEvent(event); 1.21 +} 1.22 +</script> 1.23 +</head> 1.24 +<body> 1.25 +<a id="theme-install" href="#" onclick="setTheme(this)">Install</a> 1.26 +</body> 1.27 +</html>