toolkit/mozapps/extensions/test/xpinstall/installtrigger.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     4 <html>
     6 <!-- This page will accept some json as the uri query and pass it to InstallTrigger.install -->
     8 <head>
     9 <title>InstallTrigger tests</title>
    10 <script type="text/javascript">
    11 function installCallback(url, status) {
    12   document.getElementById("status").textContent = status;
    13 }
    15 function startInstall() {
    16   var text = decodeURIComponent(document.location.search.substring(1));
    17   var triggers = JSON.parse(text);
    18   try {
    19     document.getElementById("return").textContent = InstallTrigger.install(triggers, installCallback);
    20   }
    21   catch (e) {
    22     document.getElementById("return").textContent = "exception";
    23     throw e;
    24   }
    25 }
    26 </script>
    27 </head>
    28 <body onload="startInstall()">
    29 <p>InstallTrigger tests</p>
    30 <p id="return"></p>
    31 <p id="status"></p>
    32 </body>
    33 </html>

mercurial