browser/base/content/test/general/bug592338.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

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>

mercurial