summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/plugins/plugin_crashCommentAndURL.html
blob: 711a19ed3782077cf68a5d4990d916ddcfccd606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript">
      function crash() {
        var plugin = document.getElementById("plugin");
        var argStr = decodeURIComponent(window.location.search.substr(1));
        if (argStr) {
          var args = JSON.parse(argStr);
          for (var key in args)
            plugin.setAttribute(key, args[key]);
        }
        try {
          plugin.crash();
        }
        catch (err) {}
      }
    </script>
  </head>
  <body onload="crash();">
    <embed id="plugin" type="application/x-test"
           width="400" height="400"
           drawmode="solid" color="FF00FFFF">
    </embed>
  </body>
</html>