Automated checkin: version bump remove "pre" from version number for firefox 3.7a1...
[mozilla-central.git] / xpinstall / tests / installtrigger.html
blobe6a08764e12575bc85973f8c796fafa0288a2012
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;
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);
21 catch (e) {
22 document.getElementById("return").textContent = "exception";
25 </script>
26 </head>
27 <body onload="startInstall()">
28 <p>InstallTrigger tests</p>
29 <p id="return"></p>
30 <p id="status"></p>
31 </body>
32 </html>